Package edu.wpi.first.util.datalog
Class DataLogWriter
java.lang.Object
edu.wpi.first.util.datalog.DataLog
edu.wpi.first.util.datalog.DataLogWriter
- All Implemented Interfaces:
AutoCloseable
A data log writer that flushes the data log to a file when flush() is called.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstruct a new Data Log with an output stream.DataLogWriter
(OutputStream os, String extraHeader) Construct a new Data Log with an output stream.DataLogWriter
(String filename) Construct a new Data Log.DataLogWriter
(String filename, String extraHeader) Construct a new Data Log. -
Method Summary
Methods inherited from class edu.wpi.first.util.datalog.DataLog
addSchema, addSchema, addSchema, addSchema, addSchema, addSchema, addSchema, addSchema, appendBoolean, appendBooleanArray, appendDouble, appendDoubleArray, appendFloat, appendFloatArray, appendInteger, appendIntegerArray, appendRaw, appendRaw, appendRaw, appendRaw, appendString, appendStringArray, close, finish, finish, getImpl, hasSchema, pause, resume, setMetadata, setMetadata, start, start, start, stop
-
Constructor Details
-
DataLogWriter
Construct a new Data Log.- Parameters:
filename
- filename to useextraHeader
- extra header data- Throws:
IOException
- if file cannot be opened
-
DataLogWriter
Construct a new Data Log.- Parameters:
filename
- filename to use- Throws:
IOException
- if file cannot be opened
-
DataLogWriter
Construct a new Data Log with an output stream. Prefer the filename version if possible; this is much slower!- Parameters:
os
- output streamextraHeader
- extra header data
-
DataLogWriter
Construct a new Data Log with an output stream.- Parameters:
os
- output stream
-
-
Method Details