maslab.data
Class DataLogWriter

java.lang.Object
  extended by 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.
 
Method Summary
 void close()
           
 int getRecordsWritten()
           
 void write(DataEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 file
timeOffset - The amount to subtract from all time
Throws:
java.io.IOException
Method Detail

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()