public class NoteImporter extends FileImporter
Modifier and Type | Field and Description |
---|---|
private static ExtensionFileFilter |
FILE_FILTER |
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, activeLayerChange, compareTo, getPriority, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, layerAdded, layerRemoved, setEnabled
private static final ExtensionFileFilter FILE_FILTER
public NoteImporter()
public void importData(java.io.File file, ProgressMonitor progressMonitor) throws java.io.IOException
FileImporter
importData
in class FileImporter
file
- 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