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