Home » openjdk-7 » javax.sound » midi » spi » [javadoc | source]
javax.sound.midi.spi
abstract public class: MidiFileWriter [javadoc | source]
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 Sequence object.
Method from javax.sound.midi.spi.MidiFileWriter Summary:
getMidiFileTypes,   getMidiFileTypes,   isFileTypeSupported,   isFileTypeSupported,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.sound.midi.spi.MidiFileWriter Detail:
 abstract public int[] getMidiFileTypes()
    Obtains the set of MIDI file types for which file writing support is provided by this file writer.
 abstract public int[] getMidiFileTypes(Sequence sequence)
    Obtains the file types that this file writer can write from the sequence specified.
 public boolean isFileTypeSupported(int fileType) 
    Indicates whether file writing support for the specified MIDI file type is provided by this file writer.
 public boolean isFileTypeSupported(int fileType,
    Sequence sequence) 
    Indicates whether a MIDI file of the file type specified can be written from the sequence indicated.
 abstract public int write(Sequence in,
    int fileType,
    OutputStream out) throws IOException
    Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided.
 abstract public int write(Sequence in,
    int fileType,
    File out) throws IOException
    Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided.