DataLogger.DataWriter, IDataSinkpublic class DataTableWriter extends java.lang.Object implements DataLogger.DataWriter
| Modifier and Type | Field | Description |
|---|---|---|
protected IDataSink |
internalDataSink |
| Constructor | Description |
|---|---|
DataTableWriter() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
getIncludeHeader() |
Returns whether the writer includes column headers or not
|
protected IDataSink |
makeTerminalSink() |
|
void |
putData(IData data) |
Gives data to DataSink for processing, display, or whatever it does.
|
void |
putDataInfo(IDataInfo newDataInfo) |
Informs the DataSink of the type of Data it should expect to receive.
|
protected void |
putDataInfoInternal(IDataInfo myDataInfo) |
|
protected void |
putDataInternal(IData data) |
|
void |
reset() |
Informs the DataSink that it will be writing the beginning of the
file so printing header information is appropriate.
|
void |
setFileWriter(java.io.FileWriter newFileWriter) |
Sets the FileWriter to be used for actual file I/O.
|
void |
setIncludeHeader(boolean newIncludeHeader) |
Directs the writer to include column headers or not
|
protected IDataSink internalDataSink
public boolean getIncludeHeader()
public void setIncludeHeader(boolean newIncludeHeader)
public void putDataInfo(IDataInfo newDataInfo)
IDataSinkputDataInfo in interface IDataSinkprotected IDataSink makeTerminalSink()
protected void putDataInfoInternal(IDataInfo myDataInfo)
public void putData(IData data)
IDataSinkprotected void putDataInternal(IData data)
public void setFileWriter(java.io.FileWriter newFileWriter)
DataLogger.DataWritersetFileWriter in interface DataLogger.DataWriterpublic void reset()
DataLogger.DataWriterreset in interface DataLogger.DataWriter