public final class CsvAppender
extends java.lang.Object
implements java.io.Closeable, java.io.Flushable
| Modifier and Type | Method and Description |
|---|---|
void |
appendField(java.lang.String value)
Appends a field to the current row.
|
void |
appendLine(java.lang.String... values)
Appends a complete line - one or more fields and new line character(s) at the end.
|
void |
close() |
void |
endLine()
Appends new line character(s) to the current line.
|
void |
flush() |
public void appendField(java.lang.String value)
throws java.io.IOException
value - the field to append (null is handled as empty string)java.io.IOException - if a write error occurspublic void appendLine(java.lang.String... values)
throws java.io.IOException
values - the fields to append (null values are handled as empty strings)java.io.IOException - if a write error occurspublic void endLine()
throws java.io.IOException
java.io.IOException - if a write error occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOException