org.openstreetmap.josm.io
Class OsmExporter

java.lang.Object
  extended by org.openstreetmap.josm.io.FileExporter
      extended by org.openstreetmap.josm.io.OsmExporter
All Implemented Interfaces:
MapView.LayerChangeListener
Direct Known Subclasses:
OsmBzip2Exporter, OsmGzipExporter

public class OsmExporter
extends FileExporter


Field Summary
 
Fields inherited from class org.openstreetmap.josm.io.FileExporter
filter
 
Constructor Summary
OsmExporter()
           
OsmExporter(ExtensionFileFilter filter)
           
 
Method Summary
 boolean acceptFile(java.io.File pathname, Layer layer)
           
private  void copy(java.io.File src, java.io.File dst)
           
 void exportData(java.io.File file, Layer layer)
           
 void exportData(java.io.File file, Layer layer, boolean noBackup)
           
protected  java.io.OutputStream getOutputStream(java.io.File file)
           
private  void save(java.io.File file, OsmDataLayer layer, boolean noBackup)
           
 
Methods inherited from class org.openstreetmap.josm.io.FileExporter
activeLayerChange, isEnabled, layerAdded, layerRemoved, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsmExporter

public OsmExporter()

OsmExporter

public OsmExporter(ExtensionFileFilter filter)
Method Detail

acceptFile

public boolean acceptFile(java.io.File pathname,
                          Layer layer)
Overrides:
acceptFile in class FileExporter

exportData

public void exportData(java.io.File file,
                       Layer layer)
                throws java.io.IOException
Overrides:
exportData in class FileExporter
Throws:
java.io.IOException

exportData

public void exportData(java.io.File file,
                       Layer layer,
                       boolean noBackup)
                throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

protected java.io.OutputStream getOutputStream(java.io.File file)
                                        throws java.io.FileNotFoundException,
                                               java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

save

private void save(java.io.File file,
                  OsmDataLayer layer,
                  boolean noBackup)

copy

private void copy(java.io.File src,
                  java.io.File dst)
           throws java.io.IOException
Throws:
java.io.IOException


JOSM