Class NMEAImporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileImporter
-
- org.openstreetmap.josm.gui.io.importexport.GpxLikeImporter<NmeaReader>
-
- org.openstreetmap.josm.gui.io.importexport.NMEAImporter
-
- All Implemented Interfaces:
java.lang.Comparable<FileImporter>
public class NMEAImporter extends GpxLikeImporter<NmeaReader>
File importer allowing to import NMEA-0183 files (*.nmea/nme/nma/log/txt files).- Since:
- 1637
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionFileFilter
FILE_FILTER
The NMEA file filter (*.nmea *.nme *.nma *.log *.txt files).-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
filter, options
-
-
Constructor Summary
Constructors Constructor Description NMEAImporter()
Constructs a newNMEAImporter
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendInfoboxContent(java.lang.StringBuilder msg, boolean success, NmeaReader r)
static GpxImporter.GpxImporterData
loadLayers(java.io.InputStream is, java.io.File associatedFile, java.lang.String gpxLayerName)
Replies the new GPX and marker layers corresponding to the specified NMEA file.-
Methods inherited from class org.openstreetmap.josm.gui.io.importexport.GpxLikeImporter
buildAndParse, importData, showInfobox
-
Methods inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
acceptFile, compareTo, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, setEnabled, setOptions
-
-
-
-
Field Detail
-
FILE_FILTER
public static final ExtensionFileFilter FILE_FILTER
The NMEA file filter (*.nmea *.nme *.nma *.log *.txt files).
-
-
Constructor Detail
-
NMEAImporter
public NMEAImporter()
Constructs a newNMEAImporter
.
-
-
Method Detail
-
appendInfoboxContent
protected void appendInfoboxContent(java.lang.StringBuilder msg, boolean success, NmeaReader r)
- Overrides:
appendInfoboxContent
in classGpxLikeImporter<NmeaReader>
-
loadLayers
public static GpxImporter.GpxImporterData loadLayers(java.io.InputStream is, java.io.File associatedFile, java.lang.String gpxLayerName) throws java.io.IOException
Replies the new GPX and marker layers corresponding to the specified NMEA file.- Parameters:
is
- input stream to NMEA 0183 dataassociatedFile
- NMEA filegpxLayerName
- The GPX layer name- Returns:
- the new GPX and marker layers corresponding to the specified NMEA file
- Throws:
java.io.IOException
- if an I/O error occurs
-
-