maslab.data
Class DataLogWriter
java.lang.Object
maslab.data.DataLogWriter
public class DataLogWriter
- extends java.lang.Object
Constructor Summary |
DataLogWriter(java.lang.String path,
double timeOffset)
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,
double timeOffset)
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
write
public void write(DataEvent e)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getRecordsWritten
public int getRecordsWritten()