src/share/classes/javax/sound/midi/spi/MidiFileReader.java

Print this page

        

*** 24,40 **** */ package javax.sound.midi.spi; import java.io.File; - import java.io.InputStream; import java.io.IOException; import java.net.URL; import javax.sound.midi.MidiFileFormat; import javax.sound.midi.Sequence; - import javax.sound.midi.InvalidMidiDataException; /** * A {@code MidiFileReader} supplies MIDI file-reading services. Classes * implementing this interface can parse the format information from one or more * types of MIDI file, and can produce a {@link Sequence} object from files of --- 24,40 ---- */ package javax.sound.midi.spi; import java.io.File; import java.io.IOException; + import java.io.InputStream; import java.net.URL; + import javax.sound.midi.InvalidMidiDataException; import javax.sound.midi.MidiFileFormat; import javax.sound.midi.Sequence; /** * A {@code MidiFileReader} supplies MIDI file-reading services. Classes * implementing this interface can parse the format information from one or more * types of MIDI file, and can produce a {@link Sequence} object from files of
*** 104,114 **** * not support this, this method may fail with an IOException. * * @param stream the input stream from which the {@code Sequence} should * be constructed * @return a {@code Sequence} object based on the MIDI file data contained ! * in the input stream. * @throws InvalidMidiDataException if the stream does not point to valid * MIDI file data recognized by the system * @throws IOException if an I/O exception occurs * @see InputStream#markSupported * @see InputStream#mark --- 104,114 ---- * not support this, this method may fail with an IOException. * * @param stream the input stream from which the {@code Sequence} should * be constructed * @return a {@code Sequence} object based on the MIDI file data contained ! * in the input stream * @throws InvalidMidiDataException if the stream does not point to valid * MIDI file data recognized by the system * @throws IOException if an I/O exception occurs * @see InputStream#markSupported * @see InputStream#mark