Class CsvCellWriter
java.lang.Object
org.simpleflatmapper.lightningcsv.CsvCellWriter
- All Implemented Interfaces:
CellWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final Stringstatic final charstatic final charstatic final charstatic final CsvCellWriter -
Constructor Summary
ConstructorsConstructorDescriptionCsvCellWriter(char separator, char quote, char escape, boolean alwaysEscape, String endOfLine) -
Method Summary
Modifier and TypeMethodDescriptionalwaysEscape(boolean alwaysEscape) voidendOfRow(Appendable target) escape(char escape) voidnextCell(Appendable target) quote(char quote) separator(char separator) voidwriteRow(CharSequence[] values, Appendable appendable) voidwriteRow(Iterable<? extends CharSequence> values, Appendable appendable) voidwriteValue(char[] chars, int start, int end, Appendable appendable) voidwriteValue(CharSequence sequence, int start, int end, Appendable appendable) voidwriteValue(CharSequence sequence, Appendable appendable)
-
Field Details
-
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR- See Also:
-
DEFAULT_QUOTE
public static final char DEFAULT_QUOTE- See Also:
-
DEFAULT_ESCAPE
public static final char DEFAULT_ESCAPE- See Also:
-
DEFAULT_ALWAYS_ESCAPE
public static final boolean DEFAULT_ALWAYS_ESCAPE- See Also:
-
DEFAULT_END_OF_LINE
- See Also:
-
DEFAULT_WRITER
-
-
Constructor Details
-
CsvCellWriter
public CsvCellWriter(char separator, char quote, char escape, boolean alwaysEscape, String endOfLine)
-
-
Method Details
-
writeRow
- Throws:
IOException
-
writeRow
public void writeRow(Iterable<? extends CharSequence> values, Appendable appendable) throws IOException - Throws:
IOException
-
writeValue
- Specified by:
writeValuein interfaceCellWriter- Throws:
IOException
-
writeValue
public void writeValue(CharSequence sequence, int start, int end, Appendable appendable) throws IOException - Specified by:
writeValuein interfaceCellWriter- Throws:
IOException
-
writeValue
- Specified by:
writeValuein interfaceCellWriter- Throws:
IOException
-
nextCell
- Specified by:
nextCellin interfaceCellWriter- Throws:
IOException
-
endOfRow
- Specified by:
endOfRowin interfaceCellWriter- Throws:
IOException
-
separator
-
quote
-
escape
-
alwaysEscape
-
endOfLine
-
alwaysEscape
-