Lines Matching refs:InvalidMidiDataException
38 import javax.sound.midi.InvalidMidiDataException;
63 public MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException {
68 private MidiFileFormat getMidiFileFormatFromStream(InputStream stream, int fileLength, SMFParser smfParser) throws InvalidMidiDataException, IOException {
93 throw new InvalidMidiDataException("not a valid MIDI file");
124 throw new InvalidMidiDataException("Unknown frame code: " + frameCode);
145 public MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException {
150 fileFormat = getMidiFileFormat( bis ); // throws InvalidMidiDataException
158 public MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException {
177 public Sequence getSequence(InputStream stream) throws InvalidMidiDataException, IOException {
185 throw new InvalidMidiDataException("Invalid or unsupported file type: " + format.getType());
204 public Sequence getSequence(URL url) throws InvalidMidiDataException, IOException {
217 public Sequence getSequence(File file) throws InvalidMidiDataException, IOException {
280 boolean nextTrack() throws IOException, InvalidMidiDataException {
318 void readTrack(Track track) throws IOException, InvalidMidiDataException {
324 // this should cause us to throw an InvalidMidiDataException if we don't
402 throw new InvalidMidiDataException("Invalid status byte: " + status);
406 throw new InvalidMidiDataException("Invalid status byte: " + status);