Class OsmChangeImporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileImporter
-
- org.openstreetmap.josm.gui.io.importexport.OsmChangeImporter
-
- All Implemented Interfaces:
java.lang.Comparable<FileImporter>
public class OsmChangeImporter extends FileImporter
File importer that reads OSM change files (*.osc).- See Also:
- OsmChange
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionFileFilterFILE_FILTERFile filter for OsmChange files.-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
filter, options
-
-
Constructor Summary
Constructors Constructor Description OsmChangeImporter()Constructs a newOsmChangeImporterwith default file filter.OsmChangeImporter(ExtensionFileFilter filter)Constructs a newOsmChangeImporterwith custom file filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLayer(Layer layer)voidimportData(java.io.File file, ProgressMonitor progressMonitor)Needs to be implemented if isBatchImporter() returns false.protected voidimportData(java.io.InputStream in, java.io.File associatedFile, ProgressMonitor progressMonitor)-
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
File filter for OsmChange files.
-
-
Constructor Detail
-
OsmChangeImporter
public OsmChangeImporter()
Constructs a newOsmChangeImporterwith default file filter.
-
OsmChangeImporter
public OsmChangeImporter(ExtensionFileFilter filter)
Constructs a newOsmChangeImporterwith custom file filter.- Parameters:
filter- file filter
-
-
Method Detail
-
importData
public void importData(java.io.File file, ProgressMonitor progressMonitor) throws java.io.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:
java.io.IOException- if any I/O error occursIllegalDataException- if invalid data is read
-
importData
protected void importData(java.io.InputStream in, java.io.File associatedFile, ProgressMonitor progressMonitor) throws IllegalDataException
- Throws:
IllegalDataException
-
-