Class NoteImporter

  • All Implemented Interfaces:
    java.lang.Comparable<FileImporter>

    public class NoteImporter
    extends FileImporter
    File importer that reads note dump files (*.osn, .osn.gz, .osn.xz and .osn.bz2)
    Since:
    7538
    • Constructor Detail

      • NoteImporter

        public NoteImporter()
        Create an importer for note dump files
    • Method Detail

      • importData

        public void importData​(java.io.File file,
                               ProgressMonitor progressMonitor)
                        throws java.io.IOException
        Description copied from class: FileImporter
        Needs to be implemented if isBatchImporter() returns false.
        Overrides:
        importData in class FileImporter
        Parameters:
        file - file to import
        progressMonitor - progress monitor
        Throws:
        java.io.IOException - if any I/O error occurs
      • loadLayer

        public NoteLayer loadLayer​(java.io.InputStream in,
                                   java.io.File associatedFile,
                                   java.lang.String layerName,
                                   ProgressMonitor progressMonitor)
                            throws org.xml.sax.SAXException,
                                   java.io.IOException
        Load note layer from InputStream.
        Parameters:
        in - input stream
        associatedFile - filename of data (can be null if the stream does not come from a file)
        layerName - name of generated layer
        progressMonitor - handler for progress monitoring and canceling
        Returns:
        note layer
        Throws:
        java.io.IOException - if any I/O error occurs
        org.xml.sax.SAXException - if any SAX error occurs
        Since:
        9746