bt747.j2se_view
Class GPSKMZFile

java.lang.Object
  extended by gps.log.out.GPSFile
      extended by gps.log.out.GPSKMLFile
          extended by bt747.j2se_view.GPSKMZFile
All Implemented Interfaces:
GPSFileConverterInterface, GPSFileConfInterface, GPSFileInterface

public final class GPSKMZFile
extends GPSKMLFile
implements GPSFileInterface

Class to write a KML file.

Author:
Mario De Weerd

Field Summary
 
Fields inherited from class gps.log.out.GPSKMLFile
ABSOLUTE_HEIGHT, CLAMPED_HEIGHT, RELATIVE_HEIGHT
 
Fields inherited from class gps.log.out.GPSFile
FILE_SPLIT_NONE, FILE_SPLIT_ONE_FILE_PER_DAY, FILE_SPLIT_ONE_FILE_PER_TRACK
 
Constructor Summary
GPSKMZFile()
           
 
Method Summary
 void finaliseFile()
          Method called when all parsing is finished and the last file has to be closed.
 void initialiseFile(BT747Path basename, java.lang.String ext, int oneFilePerDay)
          This function has to be called at some time to initialize the file conversion.
 
Methods inherited from class gps.log.out.GPSKMLFile
nextPass, setTrackName, writeFileHeader, writeRecord
 
Methods inherited from class gps.log.out.GPSFile
addLogRecord, cachedRecordIsNeeded, getBadTrackColor, getErrorInfo, getFilesCreated, getGoodTrackColor, getMaxDiff, getNbrFilesCreated, getParamObject, getUserWayPointList, isAddLogConditionInfo, isOverridePreviousTag, isRecordNbrInLogs, needPassToFindFieldsActivatedInLog, setActiveFileFields, setAddLogConditionInfo, setBadTrackColor, setFilenameBuilder, setFilters, setGoodTrackColor, setImperial, setIncludeTrkComment, setIncludeTrkName, setMaxDiff, setOutputFields, setOverridePreviousTag, setParamObject, setRecordNbrInLogs, setTimeOffset, setTrackSepTime, setUserWayPointList, setWayPointTimeCorrection, writeLogFmtHeader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gps.log.out.GPSFileConfInterface
getParamObject, setActiveFileFields, setAddLogConditionInfo, setBadTrackColor, setFilenameBuilder, setFilters, setGoodTrackColor, setImperial, setIncludeTrkComment, setIncludeTrkName, setMaxDiff, setOutputFields, setOverridePreviousTag, setParamObject, setRecordNbrInLogs, setTimeOffset, setTrackSepTime, setUserWayPointList, setWayPointTimeCorrection
 
Methods inherited from interface gps.log.in.GPSFileConverterInterface
addLogRecord, getFilesCreated, getNbrFilesCreated, needPassToFindFieldsActivatedInLog, nextPass, setActiveFileFields, writeLogFmtHeader
 

Constructor Detail

GPSKMZFile

public GPSKMZFile()
Method Detail

initialiseFile

public final void initialiseFile(BT747Path basename,
                                 java.lang.String ext,
                                 int oneFilePerDay)
Description copied from class: GPSFile
This function has to be called at some time to initialize the file conversion. Other parameters can be set through other methods.

Specified by:
initialiseFile in interface GPSFileConfInterface
Overrides:
initialiseFile in class GPSKMLFile
Parameters:
basename - Base name of the output file. This value will be provided to the filename builder.
ext - Extension of the output file. This value will be provided to the filename builder.
oneFilePerDay - Indicates how the file must be separated.
See Also:
AppSettings.SPLIT_ONE_FILE, AppSettings.SPLIT_ONE_FILE_PER_DAY, AppSettings.SPLIT_ONE_FILE_PER_TRACK

finaliseFile

public final void finaliseFile()
Description copied from class: GPSFile
Method called when all parsing is finished and the last file has to be closed.
This method can be extended. It closes the output file by default, so super() should be called once other handling is finished.

Specified by:
finaliseFile in interface GPSFileConverterInterface
Overrides:
finaliseFile in class GPSKMLFile