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
RecordWriter
putField
in interface RecordWriter
value
- the field valueIOException
- if failed to put by I/O errorpublic void putEndOfRecord() throws IOException
RecordWriter
putEndOfRecord
in interface RecordWriter
IOException
- if failed to put by I/O errorpublic void flush() throws IOException
flush
in interface Flushable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.