org.openstreetmap.josm.io
Class WMSLayerImporter

java.lang.Object
  extended by org.openstreetmap.josm.io.FileImporter
      extended by org.openstreetmap.josm.io.WMSLayerImporter
All Implemented Interfaces:
java.lang.Comparable<FileImporter>, MapView.LayerChangeListener

public class WMSLayerImporter
extends FileImporter

Import a WMS layer from a serialized binary file previously exported via WMSLayerExporter.

Since:
5457

Field Summary
static ExtensionFileFilter FILE_FILTER
          The file filter used in "open" and "save" dialogs for WMS layers.
private  WMSLayer wmsLayer
           
 
Fields inherited from class org.openstreetmap.josm.io.FileImporter
filter
 
Constructor Summary
WMSLayerImporter()
          Constructs a new WMSLayerImporter.
WMSLayerImporter(WMSLayer wmsLayer)
          Constructs a new WMSLayerImporter that will import data to the specified WMS layer.
 
Method Summary
 WMSLayer getWmsLayer()
          Replies the imported WMS layer.
 void importData(java.io.File file, ProgressMonitor progressMonitor)
          Needs to be implemented if isBatchImporter() returns false.
 
Methods inherited from class org.openstreetmap.josm.io.FileImporter
acceptFile, activeLayerChange, compareTo, getBZip2InputStream, getGZipInputStream, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, layerAdded, layerRemoved, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_FILTER

public static final ExtensionFileFilter FILE_FILTER
The file filter used in "open" and "save" dialogs for WMS layers.


wmsLayer

private final WMSLayer wmsLayer
Constructor Detail

WMSLayerImporter

public WMSLayerImporter()
Constructs a new WMSLayerImporter.


WMSLayerImporter

public WMSLayerImporter(WMSLayer wmsLayer)
Constructs a new WMSLayerImporter that will import data to the specified WMS layer.

Parameters:
wmsLayer - The WMS layer.
Method Detail

importData

public void importData(java.io.File file,
                       ProgressMonitor progressMonitor)
                throws java.io.IOException,
                       IllegalDataException
Description copied from class: FileImporter
Needs to be implemented if isBatchImporter() returns false.

Overrides:
importData in class FileImporter
Throws:
java.io.IOException
IllegalDataException

getWmsLayer

public final WMSLayer getWmsLayer()
Replies the imported WMS layer.

Returns:
The imported WMS layer.
See Also:
importData(File, ProgressMonitor)


JOSM