public class TabularFieldWriter extends Object implements FieldWriter
FieldWriter for tabular style text contents.| Constructor and Description |
|---|
TabularFieldWriter(Writer writer,
LineSeparator lineSeparator,
char fieldSeparator,
EscapeSequence escapeSequences,
UnaryOperator<CharSequence> transformer)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
putEndOfRecord()
Puts an end-of-record mark and starts writing the next record.
|
void |
putField(FieldOutput output)
Puts a next field into the current writing record.
|
public TabularFieldWriter(Writer writer, LineSeparator lineSeparator, char fieldSeparator, EscapeSequence escapeSequences, UnaryOperator<CharSequence> transformer)
writer - the destination writerlineSeparator - the line separator kindfieldSeparator - the field separator characterescapeSequences - the escape sequences definition (nullable)transformer - the output transformer (nullable)public void putField(FieldOutput output) throws IOException
FieldWriterputField in interface FieldWriteroutput - the field contentsIOException - if I/O error was occurred while writing the next fieldpublic void putEndOfRecord()
throws IOException
FieldWriterputEndOfRecord in interface FieldWriterIOException - if I/O error was occurred while writing the end-of-record markpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.