public abstract class MidiFileWriter extends Object
Constructor and Description |
---|
MidiFileWriter() |
Modifier and Type | Method and Description |
---|---|
abstract int[] |
getMidiFileTypes()
Get the all of the file types ID
|
abstract int[] |
getMidiFileTypes(Sequence sequence)
Get the all of the file types ID on the specified
Sequence |
boolean |
isFileTypeSupported(int fileType)
Check if the specified file type is supported
|
boolean |
isFileTypeSupported(int fileType,
Sequence sequence)
Check if the specified file type is supported on the specified
Sequence |
abstract int |
write(Sequence sequence,
int fileType,
File file)
|
abstract int |
write(Sequence sequence,
int fileType,
OutputStream outputStream)
Write the
Sequence to the OutputStream with the file type |
@NonNull public abstract int[] getMidiFileTypes()
@NonNull public abstract int[] getMidiFileTypes(@NonNull Sequence sequence)
Sequence
sequence
- the sequencepublic boolean isFileTypeSupported(int fileType)
fileType
- the file typepublic boolean isFileTypeSupported(int fileType, @NonNull Sequence sequence)
Sequence
fileType
- the file typesequence
- the sequencepublic abstract int write(@NonNull Sequence sequence, int fileType, @NonNull File file) throws IOException
sequence
- the sequencefileType
- the file typefile
- the fileIOException
public abstract int write(@NonNull Sequence sequence, int fileType, @NonNull OutputStream outputStream) throws IOException
Sequence
to the OutputStream
with the file typesequence
- the sequencefileType
- the file typeoutputStream
- the OutputStreamIOException