maslab.data
Class DataLogWriter
java.lang.Object
maslab.data.DataLogWriter
public class DataLogWriter
- extends java.lang.Object
|
Constructor Summary |
DataLogWriter(java.lang.String path)
Open a new log for writing. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataLogWriter
public DataLogWriter(java.lang.String path)
throws java.io.IOException
- Open a new log for writing.
- Parameters:
path - The path of the log filetimeOffset - The amount to subtract from all time
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getRecordsWritten
public int getRecordsWritten()
addDataSource
public void addDataSource(DataSource s)
writeEvent
public void writeEvent(DataSource source,
double timeStamp,
java.lang.String data)