Class NoteExporter

java.lang.Object
org.openstreetmap.josm.gui.io.importexport.FileExporter
org.openstreetmap.josm.gui.io.importexport.NoteExporter
All Implemented Interfaces:
MainLayerManager.ActiveLayerChangeListener

public class NoteExporter extends FileExporter
Exporter to write note data to an XML file
  • Field Details

  • Constructor Details

    • NoteExporter

      public NoteExporter()
      Create a new note exporter with the default .osn file filter
  • Method Details

    • acceptFile

      public boolean acceptFile(File pathname, Layer layer)
      Description copied from class: FileExporter
      Check if this exporter can export a certain layer to a certain file. Most exporters support just a single layer type.
      Overrides:
      acceptFile in class FileExporter
      Parameters:
      pathname - the target file name (check file extension using the FileExporter.filter
      layer - the layer requested for export
      Returns:
      true, if the exporter can handle the layer and filename is okay
    • exportData

      public void exportData(File file, Layer layer) throws IOException
      Description copied from class: FileExporter
      Execute the data export. (To be overridden by subclasses.)
      Overrides:
      exportData in class FileExporter
      Parameters:
      file - target file
      layer - the layer to export
      Throws:
      IOException - in case of an IO error