public class TrackOutput extends TrackFilter implements AutoCloseable
log| 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) |
protected void |
output(long time,
float latitude,
float longitude) |
TrackOutput |
setBearingTolerance(double bearingTolerance) |
TrackOutput |
setBuffered(boolean buffered) |
TrackOutput |
setMaxPassive(long maxPassive) |
TrackOutput |
setMaxSpeed(double maxSpeed) |
TrackOutput |
setMinDistance(double minDistance) |
flush, inputpublic TrackOutput(File directory)
directory - public TrackOutput(File directory, String format)
directory - format - Track file name format as in SimpleDateFormatSimpleDateFormatprotected void output(long time,
float latitude,
float longitude)
throws IOException
output in class TrackFilterIOExceptionprotected void open(long time)
throws IOException
open in class TrackFilterIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in class TrackFilterIOExceptionpublic TrackOutput setBuffered(boolean buffered)
public TrackOutput setMaxPassive(long maxPassive)
setMaxPassive in class TrackFilterpublic TrackOutput setMaxSpeed(double maxSpeed)
setMaxSpeed in class TrackFiltermaxSpeed - Knots. If waypoints distance implies greater speed the waypoint is dropped.public TrackOutput setMinDistance(double minDistance)
setMinDistance in class TrackFilterpublic TrackOutput setBearingTolerance(double bearingTolerance)
setBearingTolerance in class TrackFilterCopyright © 2016. All rights reserved.