Class OziWptImporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileImporter
-
- org.openstreetmap.josm.gui.io.importexport.GpxLikeImporter<OziWptReader>
-
- org.openstreetmap.josm.gui.io.importexport.OziWptImporter
-
- All Implemented Interfaces:
java.lang.Comparable<FileImporter>
public class OziWptImporter extends GpxLikeImporter<OziWptReader>
File importer allowing to import OziExplorer Waypoint files (*.wpt files).- Since:
- 18179
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionFileFilterFILE_FILTERThe OziExplorer Waypoint file filter (*.wpt files).-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
filter, options
-
-
Constructor Summary
Constructors Constructor Description OziWptImporter()Constructs a newOziWptImporter.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GpxImporter.GpxImporterDataloadLayers(java.io.InputStream is, java.io.File associatedFile, java.lang.String gpxLayerName)Replies the new GPX and marker layers corresponding to the specified wpt file.-
Methods inherited from class org.openstreetmap.josm.gui.io.importexport.GpxLikeImporter
appendInfoboxContent, 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 OziExplorer Waypoint file filter (*.wpt files).
-
-
Constructor Detail
-
OziWptImporter
public OziWptImporter()
Constructs a newOziWptImporter.
-
-
Method Detail
-
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 wpt file.- Parameters:
is- input stream to dataassociatedFile- wpt filegpxLayerName- The GPX layer name- Returns:
- the new GPX and marker layers corresponding to the specified wpt file
- Throws:
java.io.IOException- if an I/O error occurs
-
-