Class NoteExporter

    • Constructor Detail

      • NoteExporter

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

      • acceptFile

        public boolean acceptFile​(java.io.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​(java.io.File file,
                               Layer layer)
                        throws java.io.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:
        java.io.IOException - in case of an IO error