public abstract class Exporter
extends java.lang.Object
This class can be extended by exporter classes which write a music file based on a MIDI sequence.
Directly derived classes are:
| Constructor and Description |
|---|
Exporter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
createFile(java.io.File file)
Checks and creates the file.
|
abstract ExportResult |
export(java.io.File file)
Exports a file.
|
protected boolean createFile(java.io.File file)
throws ExportException
Checks and creates the file. Checks if the specified file can be created/written or already exists. If it already exists, asks for overwriting or not. If everything is correct, creates the file.
file - the file to be writtenExportException - if the file is not writable.public abstract ExportResult export(java.io.File file) throws ExportException
Exports a file.
file - Export file based on the loaded midi stream.ExportException - If the file can not be exported correctly.