public final class CsvCellWriter extends Object implements CellWriter
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ALWAYS_ESCAPE |
static String |
DEFAULT_END_OF_LINE |
static char |
DEFAULT_ESCAPE |
static char |
DEFAULT_QUOTE |
static char |
DEFAULT_SEPARATOR |
static CsvCellWriter |
DEFAULT_WRITER |
| Constructor and Description |
|---|
CsvCellWriter(char separator,
char quote,
char escape,
boolean alwaysEscape,
String endOfLine) |
| Modifier and Type | Method and Description |
|---|---|
CellWriter |
alwaysEscape() |
CsvCellWriter |
alwaysEscape(boolean alwaysEscape) |
CsvCellWriter |
endOfLine(String endOfLine) |
void |
endOfRow(Appendable target) |
CsvCellWriter |
escape(char escape) |
void |
nextCell(Appendable target) |
CsvCellWriter |
quote(char quote) |
CsvCellWriter |
separator(char separator) |
void |
writeRow(CharSequence[] values,
Appendable appendable) |
void |
writeRow(Iterable<? extends CharSequence> values,
Appendable appendable) |
void |
writeValue(char[] chars,
int start,
int end,
Appendable appendable) |
void |
writeValue(CharSequence sequence,
Appendable appendable) |
void |
writeValue(CharSequence sequence,
int start,
int end,
Appendable appendable) |
public static final char DEFAULT_SEPARATOR
public static final char DEFAULT_QUOTE
public static final char DEFAULT_ESCAPE
public static final boolean DEFAULT_ALWAYS_ESCAPE
public static final String DEFAULT_END_OF_LINE
public static final CsvCellWriter DEFAULT_WRITER
public CsvCellWriter(char separator,
char quote,
char escape,
boolean alwaysEscape,
String endOfLine)
public void writeRow(CharSequence[] values, Appendable appendable) throws IOException
IOExceptionpublic void writeRow(Iterable<? extends CharSequence> values, Appendable appendable) throws IOException
IOExceptionpublic void writeValue(CharSequence sequence, Appendable appendable) throws IOException
writeValue in interface CellWriterIOExceptionpublic void writeValue(CharSequence sequence, int start, int end, Appendable appendable) throws IOException
writeValue in interface CellWriterIOExceptionpublic void writeValue(char[] chars,
int start,
int end,
Appendable appendable)
throws IOException
writeValue in interface CellWriterIOExceptionpublic void nextCell(Appendable target) throws IOException
nextCell in interface CellWriterIOExceptionpublic void endOfRow(Appendable target) throws IOException
endOfRow in interface CellWriterIOExceptionpublic CsvCellWriter separator(char separator)
public CsvCellWriter quote(char quote)
public CsvCellWriter escape(char escape)
public CsvCellWriter alwaysEscape(boolean alwaysEscape)
public CsvCellWriter endOfLine(String endOfLine)
public CellWriter alwaysEscape()
Copyright © 2020. All rights reserved.