1 7 8 package javax.sound.midi.spi; 9 10 import java.io.File ; 11 import java.io.InputStream ; 12 import java.io.IOException ; 13 import java.net.URL ; 14 15 import javax.sound.midi.MidiFileFormat ; 16 import javax.sound.midi.Sequence ; 17 import javax.sound.midi.InvalidMidiDataException ; 18 19 28 public abstract class MidiFileReader { 29 30 48 public abstract MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException , IOException ; 49 50 51 61 public abstract MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException , IOException ; 62 63 64 74 public abstract MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException , IOException ; 75 76 77 96 public abstract Sequence getSequence(InputStream stream) throws InvalidMidiDataException , IOException ; 97 98 99 110 public abstract Sequence getSequence(URL url) throws InvalidMidiDataException , IOException ; 111 112 113 124 public abstract Sequence getSequence(File file) throws InvalidMidiDataException , IOException ; 125 } 126 | Popular Tags |