javax.sound.midi.spi
public abstract class MidiFileWriter extends Object
Since: 1.3
Method Summary | |
---|---|
abstract int[] | getMidiFileTypes()
Return the MIDI file types supported by this writer.
|
abstract int[] | getMidiFileTypes(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, Sequence sequence)
Returns true if this writer supports the given file type for the
given sequence.
|
abstract int | write(Sequence in, int fileType, OutputStream out)
Write a sequence to a stream using the specified MIDI file type.
|
abstract int | write(Sequence in, int fileType, File out)
Write a sequence to a file using the specified MIDI file type.
|
Returns: the MIDI file types, or an empty array
Parameters: sequence the sequence we'd like to write
Returns: the MIDI file types, or an empty array
Parameters: fileType the file type we're asking about
Returns: true if this writer supports fileType, false otherwise
Parameters: fileType the file type we're asking about sequence the sequence we'd like to write
Returns: true if this writer supports fileType, false otherwise
Parameters: in the sequence to write fileType the MIDI file type to use out the output stream to write to
Returns: the number of byte written
Throws: IOException if an I/O exception happens
Parameters: in the sequence to write fileType the MIDI file type to use out the file to write to
Returns: the number of byte written
Throws: IOException if an I/O exception happens