public abstract class MidiFileWriter extends java.lang.Object
| Constructor and Description |
|---|
MidiFileWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract int[] |
getMidiFileTypes()
Return the MIDI file types supported by this writer.
|
abstract int[] |
getMidiFileTypes(javax.sound.midi.Sequence sequence)
Return the MIDI file types supported by this writer for the
given sequence.
|
boolean |
isFileTypeSupported(int fileType)
Returns true if this writer supports the given file type.
|
boolean |
isFileTypeSupported(int fileType,
javax.sound.midi.Sequence sequence)
Returns true if this writer supports the given file type for the
given sequence.
|
abstract int |
write(javax.sound.midi.Sequence in,
int fileType,
java.io.File out)
Write a sequence to a file using the specified MIDI file type.
|
abstract int |
write(javax.sound.midi.Sequence in,
int fileType,
java.io.OutputStream out)
Write a sequence to a stream using the specified MIDI file type.
|
public MidiFileWriter()
public abstract int[] getMidiFileTypes()
public abstract int[] getMidiFileTypes(javax.sound.midi.Sequence sequence)
sequence - the sequence we'd like to writepublic boolean isFileTypeSupported(int fileType)
fileType - the file type we're asking aboutpublic boolean isFileTypeSupported(int fileType, javax.sound.midi.Sequence sequence)
fileType - the file type we're asking aboutsequence - the sequence we'd like to writepublic abstract int write(javax.sound.midi.Sequence in, int fileType, java.io.OutputStream out) throws java.io.IOException
in - the sequence to writefileType - the MIDI file type to useout - the output stream to write tojava.io.IOException - if an I/O exception happenspublic abstract int write(javax.sound.midi.Sequence in, int fileType, java.io.File out) throws java.io.IOException
in - the sequence to writefileType - the MIDI file type to useout - the file to write tojava.io.IOException - if an I/O exception happens