Package de.xima.fc.logic.text.csv
Class CsvFormatter
- java.lang.Object
-
- de.xima.fc.logic.text.csv.CsvFormatter
-
public final class CsvFormatter extends Object
Formats character separated values with a certain set of options. The formatted string can be parsed again withCsvSplitter
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CsvFormatter
csvFormatterOfFormat(CsvFormat format)
String
formatRow(Iterable<String> values)
void
formatRow(Iterable<String> values, Writer writer)
void
formatRow(Iterator<String> values, Writer writer)
String
formatRows(Iterable<? extends Iterable<String>> values)
void
formatRows(Iterable<? extends Iterable<String>> values, Writer writer)
void
formatRows(Iterator<? extends Iterable<String>> values, Writer writer)
-
-
-
Method Detail
-
formatRow
public void formatRow(Iterable<String> values, Writer writer) throws IOException
- Throws:
IOException
-
formatRow
public void formatRow(Iterator<String> values, Writer writer) throws IOException
- Throws:
IOException
-
formatRows
public void formatRows(Iterable<? extends Iterable<String>> values, Writer writer) throws IOException
- Throws:
IOException
-
formatRows
public void formatRows(Iterator<? extends Iterable<String>> values, Writer writer) throws IOException
- Throws:
IOException
-
csvFormatterOfFormat
public static CsvFormatter csvFormatterOfFormat(CsvFormat format)
-
-