Class CSVWriter
java.lang.Object
dev.upcraft.sparkweave.api.serialization.CSVWriter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginRow()creates a newCSVWriter.RowBuilderat the current position
the row position is preserved even if further rows are added to the parent buildervoidclose()static CSVWritercreate(OutputStream destination, String[] columns) static CSVWritercreate(OutputStream destination, String firstColumn, String... otherColumns) toString()static CSVWriterwithSeparator(OutputStream destination, String separator, String[] columns) static CSVWriterwithSeparator(OutputStream destination, String separator, String firstColumn, String... otherColumns)
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
-
-
Method Details
-
addRow
-
beginRow
creates a newCSVWriter.RowBuilderat the current position
the row position is preserved even if further rows are added to the parent builder -
toString
-
create
public static CSVWriter create(OutputStream destination, String firstColumn, String... otherColumns) -
create
-
withSeparator
public static CSVWriter withSeparator(OutputStream destination, String separator, String firstColumn, String... otherColumns) -
withSeparator
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-