public abstract class AbstractTSVBuilder
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
AbstractTSVBuilder(java.io.Writer output)
Creates a new instance using the specified
output using '\t'
and "\n" as value and line separators. |
protected |
AbstractTSVBuilder(java.io.Writer output,
char valSep,
java.lang.String lineSep)
Creates a new instance using the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String firstVal,
java.lang.String... otherVals)
Appends a line to the writer.
|
void |
close()
Closes the underlying
Writer , flushing it first. |
protected void |
write(java.lang.String line)
Writes the specified
line as is to the writer, i.e. without
appending the new line character. |
protected AbstractTSVBuilder(java.io.Writer output, char valSep, java.lang.String lineSep)
output
- The output writervalSep
- The value separatorlineSep
- The line separatorpublic AbstractTSVBuilder(java.io.Writer output)
output
using '\t'
and "\n" as value and line separators.output
- The output writer.public void close() throws java.io.IOException
Writer
, flushing it first.java.io.IOException
protected void write(java.lang.String line) throws java.io.IOException
line
as is to the writer, i.e. without
appending the new line character.line
- java.io.IOException
public void append(java.lang.String firstVal, java.lang.String... otherVals) throws java.io.IOException
firstVal
- The first value of the lineotherVals
- The remaining valuesjava.io.IOException