public class NoteExporter extends FileExporter
Modifier and Type | Field and Description |
---|---|
static ExtensionFileFilter |
FILE_FILTER
File extension filter for .osn files
|
filter
Constructor and Description |
---|
NoteExporter()
Create a new note exporter with the default .osn file filter
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFile(java.io.File pathname,
Layer layer)
Check if this exporter can export a certain layer to a certain file.
|
void |
exportData(java.io.File file,
Layer layer)
Execute the data export.
|
activeOrEditLayerChanged, exportDataQuiet, isCanceled, isEnabled, setCanceled, setEnabled
public static final ExtensionFileFilter FILE_FILTER
public NoteExporter()
public boolean acceptFile(java.io.File pathname, Layer layer)
FileExporter
acceptFile
in class FileExporter
pathname
- the target file name (check file extension using the FileExporter.filter
layer
- the layer requested for exportpublic void exportData(java.io.File file, Layer layer) throws java.io.IOException
FileExporter
exportData
in class FileExporter
file
- target filelayer
- the layer to exportjava.io.IOException
- in case of an IO error