public class NoteImporter extends FileImporter
| Modifier and Type | Field and Description |
|---|---|
static ExtensionFileFilter |
FILE_FILTER
The Notes file filter (*.osn files).
|
filter| Constructor and Description |
|---|
NoteImporter()
Create an importer for note dump files
|
| Modifier and Type | Method and Description |
|---|---|
void |
importData(java.io.File file,
ProgressMonitor progressMonitor)
Needs to be implemented if isBatchImporter() returns false.
|
NoteLayer |
loadLayer(java.io.InputStream in,
java.io.File associatedFile,
java.lang.String layerName,
ProgressMonitor progressMonitor)
Load note layer from InputStream.
|
acceptFile, compareTo, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, setEnabledpublic static final ExtensionFileFilter FILE_FILTER
public NoteImporter()
public void importData(java.io.File file, ProgressMonitor progressMonitor) throws java.io.IOException
FileImporterimportData in class FileImporterfile - file to importprogressMonitor - progress monitorjava.io.IOException - if any I/O error occurspublic NoteLayer loadLayer(java.io.InputStream in, java.io.File associatedFile, java.lang.String layerName, ProgressMonitor progressMonitor) throws org.xml.sax.SAXException, java.io.IOException
in - input streamassociatedFile - filename of data (can be null if the stream does not come from a file)layerName - name of generated layerprogressMonitor - handler for progress monitoring and cancelingjava.io.IOException - if any I/O error occursorg.xml.sax.SAXException - if any SAX error occurs