Uses of Class
javax.sound.midi.InvalidMidiDataException
-
Packages that use InvalidMidiDataException Package Description javax.sound.midi Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.javax.sound.midi.spi Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers. -
-
Uses of InvalidMidiDataException in javax.sound.midi
Methods in javax.sound.midi that throw InvalidMidiDataException Modifier and Type Method Description protected intShortMessage. getDataLength(int status)Retrieves the number of data bytes associated with a particular status byte value.static MidiFileFormatMidiSystem. getMidiFileFormat(File file)Obtains the MIDI file format of the specifiedFile.static MidiFileFormatMidiSystem. getMidiFileFormat(InputStream stream)Obtains the MIDI file format of the data in the specified input stream.static MidiFileFormatMidiSystem. getMidiFileFormat(URL url)Obtains the MIDI file format of the data in the specified URL.static SequenceMidiSystem. getSequence(File file)Obtains a MIDI sequence from the specifiedFile.static SequenceMidiSystem. getSequence(InputStream stream)Obtains a MIDI sequence from the specified input stream.static SequenceMidiSystem. getSequence(URL url)Obtains a MIDI sequence from the specified URL.static SoundbankMidiSystem. getSoundbank(File file)Constructs aSoundbankby reading it from the specifiedFile.static SoundbankMidiSystem. getSoundbank(InputStream stream)Constructs a MIDI sound bank by reading it from the specified stream.static SoundbankMidiSystem. getSoundbank(URL url)Constructs aSoundbankby reading it from the specified URL.voidMetaMessage. setMessage(int type, byte[] data, int length)Sets the message parameters for aMetaMessage.protected voidMidiMessage. setMessage(byte[] data, int length)Sets the data for the MIDI message.voidShortMessage. setMessage(int status)Sets the parameters for a MIDI message that takes no data bytes.voidShortMessage. setMessage(int status, int data1, int data2)Sets the parameters for a MIDI message that takes one or two data bytes.voidShortMessage. setMessage(int command, int channel, int data1, int data2)Sets the short message parameters for a channel message which takes up to two data bytes.voidSysexMessage. setMessage(byte[] data, int length)Sets the data for the system exclusive message.voidSysexMessage. setMessage(int status, byte[] data, int length)Sets the data for the system exclusive message.voidSequencer. setSequence(InputStream stream)Sets the current sequence on which the sequencer operates.voidSequencer. setSequence(Sequence sequence)Sets the current sequence on which the sequencer operates.Constructors in javax.sound.midi that throw InvalidMidiDataException Constructor Description MetaMessage(int type, byte[] data, int length)Constructs a newMetaMessageand sets the message parameters.Sequence(float divisionType, int resolution)Constructs a new MIDI sequence with the specified timing division type and timing resolution.Sequence(float divisionType, int resolution, int numTracks)Constructs a new MIDI sequence with the specified timing division type, timing resolution, and number of tracks.ShortMessage(int status)Constructs a newShortMessagewhich represents a MIDI message that takes no data bytes.ShortMessage(int status, int data1, int data2)Constructs a newShortMessagewhich represents a MIDI message that takes up to two data bytes.ShortMessage(int command, int channel, int data1, int data2)Constructs a newShortMessagewhich represents a channel MIDI message that takes up to two data bytes.SysexMessage(byte[] data, int length)Constructs a newSysexMessageand sets the data for the message.SysexMessage(int status, byte[] data, int length)Constructs a newSysexMessageand sets the data for the message. -
Uses of InvalidMidiDataException in javax.sound.midi.spi
Methods in javax.sound.midi.spi that throw InvalidMidiDataException Modifier and Type Method Description abstract MidiFileFormatMidiFileReader. getMidiFileFormat(File file)Obtains the MIDI file format of theFileprovided.abstract MidiFileFormatMidiFileReader. getMidiFileFormat(InputStream stream)Obtains the MIDI file format of the input stream provided.abstract MidiFileFormatMidiFileReader. getMidiFileFormat(URL url)Obtains the MIDI file format of theURLprovided.abstract SequenceMidiFileReader. getSequence(File file)Obtains a MIDI sequence from theFileprovided.abstract SequenceMidiFileReader. getSequence(InputStream stream)Obtains a MIDI sequence from the input stream provided.abstract SequenceMidiFileReader. getSequence(URL url)Obtains a MIDI sequence from theURLprovided.abstract SoundbankSoundbankReader. getSoundbank(File file)Obtains a soundbank object from theFileprovided.abstract SoundbankSoundbankReader. getSoundbank(InputStream stream)Obtains a soundbank object from theInputStreamprovided.abstract SoundbankSoundbankReader. getSoundbank(URL url)Obtains a soundbank object from theURLprovided.
-