public class TsvEmitter extends Object implements RecordEmitter
ValueOption instances as TSV format text.
Each method in this class may raise NullPointerException if parameters were null.| Constructor and Description |
|---|
TsvEmitter(Writer writer)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
emit(BooleanOption option)
Writes the value as the next cell on in current record.
|
void |
emit(ByteOption option)
Writes the value as the next cell on in current record.
|
void |
emit(DateOption option)
Writes the value as the next cell on in current record.
|
void |
emit(DateTimeOption option)
Writes the value as the next cell on in current record.
|
void |
emit(DecimalOption option)
Writes the value as the next cell on in current record.
|
void |
emit(DoubleOption option)
Writes the value as the next cell on in current record.
|
void |
emit(FloatOption option)
Writes the value as the next cell on in current record.
|
void |
emit(IntOption option)
Writes the value as the next cell on in current record.
|
void |
emit(LongOption option)
Writes the value as the next cell on in current record.
|
void |
emit(ShortOption option)
Writes the value as the next cell on in current record.
|
void |
emit(StringOption option)
Writes the value as the next cell on in current record.
|
void |
endRecord()
Finalizes the current record and prepares writing the next record.
|
void |
flush() |
public TsvEmitter(Writer writer) throws IOException
writer - the target writerIOException - if failed to initialize this emitterIllegalArgumentException - if the parameter is nullpublic void endRecord()
throws IOException
RecordEmitterendRecord in interface RecordEmitterIOException - if error occurred while writing the valuepublic void emit(BooleanOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(ByteOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(ShortOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(IntOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(LongOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(FloatOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(DoubleOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(DecimalOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(StringOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(DateOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void emit(DateTimeOption option) throws IOException
RecordEmitteremit in interface RecordEmitteroption - the target value to be writtenIOException - if error occurred while writing the valuepublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.