Constructor and Description |
---|
MidiFileReader() |
Modifier and Type | Method and Description |
---|---|
abstract MidiFileFormat |
getMidiFileFormat(File file)
Obtains the MIDI file format of the
File provided. |
abstract MidiFileFormat |
getMidiFileFormat(InputStream stream)
Obtains the MIDI file format of the input stream provided.
|
abstract MidiFileFormat |
getMidiFileFormat(URL url)
Obtains the MIDI file format of the URL provided.
|
abstract Sequence |
getSequence(File file)
Obtains a MIDI sequence from the
File provided. |
abstract Sequence |
getSequence(InputStream stream)
Obtains a MIDI sequence from the input stream provided.
|
abstract Sequence |
getSequence(URL url)
Obtains a MIDI sequence from the URL provided.
|
public abstract MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException
IOException
.InvalidMidiDataException
- if the stream does not point to valid
MIDI file data recognized by the systemIOException
- if an I/O exception occursstream
- the input stream from which file format information
should be extractedMidiFileFormat
object describing the MIDI file formatInputStream.markSupported()
,
InputStream.mark(int)
public abstract MidiFileFormat getMidiFileFormat(URL url) throws InvalidMidiDataException, IOException
InvalidMidiDataException
- if the URL does not point to valid MIDI
file data recognized by the systemIOException
- if an I/O exception occursurl
- the URL from which file format information should be
extractedMidiFileFormat
object describing the MIDI file formatpublic abstract MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException
File
provided. The
File
must point to valid MIDI file data.InvalidMidiDataException
- if the File
does not point to
valid MIDI file data recognized by the systemIOException
- if an I/O exception occursfile
- the File
from which file format information should
be extractedMidiFileFormat
object describing the MIDI file formatpublic abstract Sequence getSequence(InputStream stream) throws InvalidMidiDataException, IOException
InvalidMidiDataException
- if the stream does not point to valid
MIDI file data recognized by the systemIOException
- if an I/O exception occursstream
- the input stream from which the Sequence
should
be constructedSequence
object based on the MIDI file data contained
in the input stream.InputStream.markSupported()
,
InputStream.mark(int)
public abstract Sequence getSequence(URL url) throws InvalidMidiDataException, IOException
InvalidMidiDataException
- if the URL does not point to valid MIDI
file data recognized by the systemIOException
- if an I/O exception occursurl
- the URL for which the Sequence
should be constructedSequence
object based on the MIDI file data pointed to
by the URLpublic abstract Sequence getSequence(File file) throws InvalidMidiDataException, IOException
File
provided. The File
must point to valid MIDI file data.InvalidMidiDataException
- if the File
does not point to
valid MIDI file data recognized by the systemIOException
- if an I/O exception occursfile
- the File
from which the Sequence
should be
constructedSequence
object based on the MIDI file data pointed to
by the File
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.