@ParametersAreNonnullByDefault public final class CharSeparatedValues extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UTF_BOM
http://unicode.org/faq/utf_bom.html#BOM
|
| Constructor and Description |
|---|
CharSeparatedValues(char separator) |
CharSeparatedValues(char separator,
char... extraCharsToEscape) |
public static final int UTF_BOM
public CharSeparatedValues(char separator)
public CharSeparatedValues(char separator,
char... extraCharsToEscape)
public void writeCsvRow(Appendable writer, Object... elems) throws IOException
IOExceptionpublic void writeCsvRowNoEOL(Appendable writer, Object... elems) throws IOException
IOExceptionpublic void writeCsvRow2(Appendable writer, Object obj, Object... elems) throws IOException
IOExceptionpublic void writeCsvRow(Appendable writer, long... elems) throws IOException
IOExceptionpublic void writeCsvRowNoEOL(long[] elems,
Appendable writer)
throws IOException
IOExceptionpublic void writeCsvRow(Appendable writer, Iterable<?> elems) throws IOException
IOExceptionpublic void writeCsvRowNoEOL(Iterable<?> elems, Appendable writer) throws IOException
IOExceptionpublic <T> T read(File file, Charset charset, CsvMapHandler<T> handler) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic <T> T read(File file, Charset charset, CsvHandler<T> handler) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic List<Map<String,String>> read(Reader preader) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic <T> T read(Reader preader, CsvMapHandler<T> handler) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic List<String> readRow(Reader reader) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic <T> T readRow(Reader reader, CsvRowHandler<T> handler) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic <T> T read(Reader preader, CsvHandler<T> handler) throws IOException, CsvParseException
IOExceptionCsvParseExceptionpublic <T> T readNoBom(PushbackReader reader, CsvHandler<T> handler) throws IOException, CsvParseException
T - preader - handler - IOExceptionCsvParseExceptionpublic Iterable<Iterable<String>> asIterable(Reader preader)
preader - public CsvReader reader(Reader preader) throws IOException
IOExceptionpublic CsvReader readerNoBOM(PushbackReader reader)
public void writeCsvElement(CharSequence elem, Appendable writer) throws IOException
IOExceptionpublic static void writeQuotedCsvElement(CharSequence elem, Appendable writer) throws IOException
IOExceptionpublic CharSequence toCsvElement(CharSequence elem)
@CheckReturnValue public int readCsvElement(Reader reader, StringBuilder addElemTo, int lineNr) throws IOException, CsvParseException
reader - addElemTo - IOExceptionCsvParseExceptionCopyright © 2019 SPF4J. All rights reserved.