java.lang.Object | |
↳ | javax.sound.midi.spi.MidiFileWriter |
![]() |
A MidiFileWriter
supplies MIDI file-writing services. Classes
that implement this interface can write one or more types of MIDI file from
a
object.Sequence
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains the set of MIDI file types for which file writing support is
provided by this file writer.
| |||||||||||
Obtains the file types that this file writer can write from the
sequence specified.
| |||||||||||
Indicates whether file writing support for the specified MIDI file type
is provided by this file writer.
| |||||||||||
Indicates whether a MIDI file of the file type specified can be written
from the sequence indicated.
| |||||||||||
Writes a stream of bytes representing a MIDI file of the file type
indicated to the output stream provided.
| |||||||||||
Writes a stream of bytes representing a MIDI file of the file type
indicated to the external file provided.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Obtains the set of MIDI file types for which file writing support is provided by this file writer.
Obtains the file types that this file writer can write from the sequence specified.
sequence | the sequence for which MIDI file type support is queried |
---|
Indicates whether file writing support for the specified MIDI file type is provided by this file writer.
fileType | the file type for which write capabilities are queried |
---|
true
if the file type is supported,
otherwise false
Indicates whether a MIDI file of the file type specified can be written from the sequence indicated.
fileType | the file type for which write capabilities are queried |
---|---|
sequence | the sequence for which file writing support is queried |
true
if the file type is supported for this sequence,
otherwise false
Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided.
in | sequence containing MIDI data to be written to the file |
---|---|
fileType | type of the file to be written to the output stream |
out | stream to which the file data should be written |
IOException | if an I/O exception occurs |
---|---|
IllegalArgumentException | if the file type is not supported by this file writer |
Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided.
in | sequence containing MIDI data to be written to the external file |
---|---|
fileType | type of the file to be written to the external file |
out | external file to which the file data should be written |
IOException | if an I/O exception occurs |
---|---|
IllegalArgumentException | if the file type is not supported by this file writer |