public class CsvWriter extends Object implements RecordWriter
| Constructor and Description |
|---|
CsvWriter(Appendable writer)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
putEndOfRecord()
Puts an end of record mark onto the current position.
|
void |
putField(CharSequence value)
Append a field into the tail of current record.
|
public CsvWriter(Appendable writer)
writer - the target writerpublic void putField(CharSequence value) throws IOException
RecordWriterputField in interface RecordWritervalue - the field valueIOException - if failed to put by I/O errorpublic void putEndOfRecord()
throws IOException
RecordWriterputEndOfRecord in interface RecordWriterIOException - if failed to put by I/O errorpublic 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.