public class TrackOutput extends org.vesalainen.util.logging.JavaLogging implements AutoCloseable
| Constructor and Description |
|---|
TrackOutput(File directory)
Creates a TrackOutput for writing compressed track file.
|
TrackOutput(File directory,
String format)
Creates a TrackOutput for writing compressed track file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
open(long time) |
void |
output(long time,
float latitude,
float longitude) |
TrackOutput |
setBuffered(boolean buffered) |
getClock, getLogger, getLogger, getLogger, getLoggerNames, isLoggable, logIt, logIt, logIt, setClockSupplier, setConsoleHandler, setConsoleHandler, setFileHandler, setHandler, setLogger, setLogger, setLogger, setLogger, setLogger, setMemoryHandler, xmlConfigpublic TrackOutput(File directory)
directory - public TrackOutput(File directory, String format)
directory - format - Track file name format as in SimpleDateFormatSimpleDateFormatpublic void output(long time,
float latitude,
float longitude)
throws IOException
IOExceptionprotected void open(long time)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic TrackOutput setBuffered(boolean buffered)
Copyright © 2017. All rights reserved.