public class CsvTextFormat extends Object implements TextFormat
TextFormat
for RFC4180 style CSV files.Modifier and Type | Class and Description |
---|---|
static class |
CsvTextFormat.Builder
A builder of
CsvTextFormat . |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_LINE_FEED_IN_FIELD
The default value of whether or not line-feed characters can appear in field.
|
static Charset |
DEFAULT_CHARSET
The default charset.
|
static char |
DEFAULT_FIELD_SEPARATOR
The default field separator.
|
static LineSeparator |
DEFAULT_LINE_SEPARATOR
The default line separator.
|
static char |
DEFAULT_QUOTE_CHARACTER
The default quote character.
|
static QuoteStyle |
DEFAULT_QUOTE_STYLE
The default quote style.
|
Modifier and Type | Method and Description |
---|---|
static CsvTextFormat.Builder |
builder()
Returns a new builder.
|
CsvFieldReader |
open(InputStream input)
Opens
FieldReader for the given input. |
CsvFieldWriter |
open(OutputStream output)
Opens
FieldWriter for the given output. |
CsvFieldReader |
open(Reader input)
Opens
FieldReader for the given input. |
CsvFieldWriter |
open(Writer output)
Opens
FieldWriter for the given output. |
public static final Charset DEFAULT_CHARSET
public static final LineSeparator DEFAULT_LINE_SEPARATOR
public static final char DEFAULT_FIELD_SEPARATOR
public static final char DEFAULT_QUOTE_CHARACTER
public static final boolean DEFAULT_ALLOW_LINE_FEED_IN_FIELD
public static final QuoteStyle DEFAULT_QUOTE_STYLE
public static final CsvTextFormat.Builder builder()
public CsvFieldReader open(InputStream input) throws IOException
TextFormat
FieldReader
for the given input.open
in interface TextFormat
input
- the source input streamFieldReader
IOException
- if I/O error was occurred while initializing the readerpublic CsvFieldWriter open(OutputStream output) throws IOException
TextFormat
FieldWriter
for the given output.open
in interface TextFormat
output
- the destination output streamFieldWriter
IOException
- if I/O error was occurred while initializing the writerpublic CsvFieldReader open(Reader input) throws IOException
TextFormat
FieldReader
for the given input.open
in interface TextFormat
input
- the source input readerFieldReader
IOException
- if I/O error was occurred while initializing the readerpublic CsvFieldWriter open(Writer output) throws IOException
TextFormat
FieldWriter
for the given output.open
in interface TextFormat
output
- the destination output writerFieldWriter
IOException
- if I/O error was occurred while initializing the writerCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.