jdk/src/java.desktop/share/classes/javax/sound/midi/spi/MidiFileReader.java
changeset 26037 508779ce6619
parent 26003 d630c97424bd
parent 25859 3317bb8137f4
child 34806 65f9c9d7b623
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
    24  */
    24  */
    25 
    25 
    26 package javax.sound.midi.spi;
    26 package javax.sound.midi.spi;
    27 
    27 
    28 import java.io.File;
    28 import java.io.File;
       
    29 import java.io.IOException;
    29 import java.io.InputStream;
    30 import java.io.InputStream;
    30 import java.io.IOException;
       
    31 import java.net.URL;
    31 import java.net.URL;
    32 
    32 
       
    33 import javax.sound.midi.InvalidMidiDataException;
    33 import javax.sound.midi.MidiFileFormat;
    34 import javax.sound.midi.MidiFileFormat;
    34 import javax.sound.midi.Sequence;
    35 import javax.sound.midi.Sequence;
    35 import javax.sound.midi.InvalidMidiDataException;
       
    36 
    36 
    37 /**
    37 /**
    38  * A {@code MidiFileReader} supplies MIDI file-reading services. Classes
    38  * A {@code MidiFileReader} supplies MIDI file-reading services. Classes
    39  * implementing this interface can parse the format information from one or more
    39  * implementing this interface can parse the format information from one or more
    40  * types of MIDI file, and can produce a {@link Sequence} object from files of
    40  * types of MIDI file, and can produce a {@link Sequence} object from files of
   104      * not support this, this method may fail with an IOException.
   104      * not support this, this method may fail with an IOException.
   105      *
   105      *
   106      * @param  stream the input stream from which the {@code Sequence} should
   106      * @param  stream the input stream from which the {@code Sequence} should
   107      *         be constructed
   107      *         be constructed
   108      * @return a {@code Sequence} object based on the MIDI file data contained
   108      * @return a {@code Sequence} object based on the MIDI file data contained
   109      *         in the input stream.
   109      *         in the input stream
   110      * @throws InvalidMidiDataException if the stream does not point to valid
   110      * @throws InvalidMidiDataException if the stream does not point to valid
   111      *         MIDI file data recognized by the system
   111      *         MIDI file data recognized by the system
   112      * @throws IOException if an I/O exception occurs
   112      * @throws IOException if an I/O exception occurs
   113      * @see InputStream#markSupported
   113      * @see InputStream#markSupported
   114      * @see InputStream#mark
   114      * @see InputStream#mark