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 CsvFormattercsvFormatterOfFormat(CsvFormat format)StringformatRow(Iterable<String> values)voidformatRow(Iterable<String> values, Writer writer)voidformatRow(Iterator<String> values, Writer writer)StringformatRows(Iterable<? extends Iterable<String>> values)voidformatRows(Iterable<? extends Iterable<String>> values, Writer writer)voidformatRows(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)
-
-