public class TabularTextFormat extends Object implements TextFormat
TextFormat
for tabular-style text files.Modifier and Type | Class and Description |
---|---|
static class |
TabularTextFormat.Builder
A builder of
TabularTextFormat . |
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static TabularTextFormat.Builder |
builder()
Returns a new builder.
|
TabularFieldReader |
open(InputStream input)
Opens
FieldReader for the given input. |
TabularFieldWriter |
open(OutputStream output)
Opens
FieldWriter for the given output. |
TabularFieldReader |
open(Reader input)
Opens
FieldReader for the given input. |
TabularFieldWriter |
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 TabularTextFormat.Builder builder()
public TabularFieldReader 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 TabularFieldWriter 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 TabularFieldReader 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 TabularFieldWriter 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.