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:
Comparable<FileImporter>
File importer allowing to import NMEA-0183 files (*.nmea/nme/nma/log/txt files).
- Since:
- 1637
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtensionFileFilterThe 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendInfoboxContent(StringBuilder msg, boolean success, NmeaReader r) static GpxImporter.GpxImporterDataloadLayers(InputStream is, File associatedFile, 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, showInfoboxMethods inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
acceptFile, compareTo, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, setEnabled, setOptions
-
Field Details
-
FILE_FILTER
The NMEA file filter (*.nmea *.nme *.nma *.log *.txt files).
-
-
Constructor Details
-
NMEAImporter
public NMEAImporter()Constructs a newNMEAImporter.
-
-
Method Details
-
appendInfoboxContent
- Overrides:
appendInfoboxContentin classGpxLikeImporter<NmeaReader>
-
loadLayers
public static GpxImporter.GpxImporterData loadLayers(InputStream is, File associatedFile, String gpxLayerName) throws 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:
IOException- if an I/O error occurs
-