DataLogger.DataWriter
, IDataSink
public class DataArrayWriter extends java.lang.Object implements DataLogger.DataWriter
Constructor | Description |
---|---|
DataArrayWriter() |
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
|
public boolean getIncludeHeader()
public void setIncludeHeader(boolean newIncludeHeader)
protected IDataSink makeTerminalSink()
public void putDataInfo(IDataInfo newDataInfo)
IDataSink
putDataInfo
in interface IDataSink
protected void putDataInfoInternal(IDataInfo myDataInfo)
public void putData(IData data)
IDataSink
protected void putDataInternal(IData data)
public void setFileWriter(java.io.FileWriter newFileWriter)
DataLogger.DataWriter
setFileWriter
in interface DataLogger.DataWriter
public void reset()
DataLogger.DataWriter
reset
in interface DataLogger.DataWriter