Class WMSLayerImporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileImporter
-
- org.openstreetmap.josm.gui.io.importexport.WMSLayerImporter
-
- All Implemented Interfaces:
Comparable<FileImporter>
public class WMSLayerImporter extends FileImporter
Import a WMS layer from a serialized binary file previously exported viaWMSLayerExporter
.- Since:
- 5457
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionFileFilter
FILE_FILTER
The file filter used in "open" and "save" dialogs for WMS layers.-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
filter, options
-
-
Constructor Summary
Constructors Constructor Description WMSLayerImporter()
Constructs a newWMSLayerImporter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
importData(File file, ProgressMonitor progressMonitor)
Needs to be implemented if isBatchImporter() returns false.-
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 file filter used in "open" and "save" dialogs for WMS layers.
-
-
Constructor Detail
-
WMSLayerImporter
public WMSLayerImporter()
Constructs a newWMSLayerImporter
.
-
-
Method Detail
-
importData
public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException
Description copied from class:FileImporter
Needs to be implemented if isBatchImporter() returns false.- Overrides:
importData
in classFileImporter
- Parameters:
file
- file to importprogressMonitor
- progress monitor- Throws:
IOException
- if any I/O error occursIllegalDataException
- if invalid data is read
-
-