public abstract class CsvWriter extends SpectrumWriter
Modifier | Constructor and Description |
---|---|
protected |
CsvWriter(java.io.OutputStream os,
int header,
SPECCHIOClient specchio_client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
endSpace()
Finish writing the current space.
|
static CsvWriter |
newInstance(java.io.OutputStream os,
int header,
SPECCHIOClient specchio_client)
Get a new instance of a CSV writer
|
protected void |
writeField(java.lang.String value)
Write a field.
|
protected void |
writeFieldSeparator()
Write a field separator.
|
protected void |
writeRecordSeparator()
Write a record separator.
|
endSpace, getCurrentSpace, getOutputStream, getTimeFormat, setTimeFormat, setUseSpectrumUnits, startSpace, useSpectrumUnits, writeSpectrum
protected CsvWriter(java.io.OutputStream os, int header, SPECCHIOClient specchio_client)
os
- the output stream upon which to writeheader
- HeaderBody.Header or HeaderBody.Bodypublic void endSpace() throws java.io.IOException
endSpace
in class SpectrumWriter
java.io.IOException
- could not write to outputpublic static CsvWriter newInstance(java.io.OutputStream os, int header, SPECCHIOClient specchio_client)
os
- the output stream upon which to writeheader
- HeaderBody.Header or HeaderBody.Bodyjava.lang.IllegalArgumentException
- invalid value for headerprotected void writeField(java.lang.String value) throws java.io.IOException
value
- the value of the fieldjava.io.IOException
- could not write to the outputprotected void writeFieldSeparator() throws java.io.IOException
java.io.IOException
- could not write to the outputprotected void writeRecordSeparator() throws java.io.IOException
java.io.IOException
- could not write to the output