| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final long | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private DataOutputStream | |
| private static final int | |
| private static final int[] | types
MIDI parser types. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private InputStream | |
| public int[] | getMidiFileTypes()
Implements abstract javax. Obtains the set of MIDI file types for which file writing support is provided by this file writer. |
| public int[] | Returns: array of file types. If no file types are supported, returns an array of length 0.the sequence for which midi file type support
is queried sequence)Implements abstract javax. Obtains the file types that this provider can write from the sequence specified. |
| private int | getType(int byteValue)
Returns ONE_BYTE, TWO_BYTE, SYSEX, META, ERROR, or IGNORE (i.e. invalid for a MIDI file) |
| public int | write(Sequence in, int type, OutputStream out)
Implements abstract javax. Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided. |
| public int | write(Sequence in, int type, File out)
Implements abstract javax. Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided. |
| private InputStream | |
| private int |
| ERROR | back to summary |
|---|---|
| private static final int ERROR | |
| IGNORE | back to summary |
|---|---|
| private static final int IGNORE | |
| mask | back to summary |
|---|---|
| private static final long mask | |
| META | back to summary |
|---|---|
| private static final int META | |
| MIDI_TYPE_0 | back to summary |
|---|---|
| private static final int MIDI_TYPE_0 | |
| MIDI_TYPE_1 | back to summary |
|---|---|
| private static final int MIDI_TYPE_1 | |
| MThd_MAGIC | back to summary |
|---|---|
| private static final int MThd_MAGIC | |
| MTrk_MAGIC | back to summary |
|---|---|
| private static final int MTrk_MAGIC | |
| ONE_BYTE | back to summary |
|---|---|
| private static final int ONE_BYTE | |
| SYSEX | back to summary |
|---|---|
| private static final int SYSEX | |
| tddos | back to summary |
|---|---|
| private DataOutputStream tddos | |
| TWO_BYTE | back to summary |
|---|---|
| private static final int TWO_BYTE | |
| types | back to summary |
|---|---|
| private static final int[] types MIDI parser types. | |
| StandardMidiFileWriter | back to summary |
|---|---|
| public StandardMidiFileWriter() | |
| getFileStream | back to summary |
|---|---|
| private InputStream getFileStream(int type, Sequence sequence) throws IOException | |
| getMidiFileTypes | back to summary |
|---|---|
| public int[] getMidiFileTypes() Implements abstract javax. Doc from javax. Obtains the set of MIDI file types for which file writing support is provided by this file writer.
| |
| getMidiFileTypes | back to summary |
|---|---|
| public int[] getMidiFileTypes(Sequence sequence) Implements abstract javax. Obtains the file types that this provider can write from the sequence specified. | |
| getType | back to summary |
|---|---|
| private int getType(int byteValue) Returns ONE_BYTE, TWO_BYTE, SYSEX, META, ERROR, or IGNORE (i.e. invalid for a MIDI file) | |
| write | back to summary |
|---|---|
| public int write(Sequence in, int type, OutputStream out) throws IOException Implements abstract javax. Doc from javax. Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided.
| |
| write | back to summary |
|---|---|
| public int write(Sequence in, int type, File out) throws IOException Implements abstract javax. Doc from javax. Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided.
| |
| writeTrack | back to summary |
|---|---|
| private InputStream writeTrack(Track track, int type) throws IOException, InvalidMidiDataException | |
| writeVarInt | back to summary |
|---|---|
| private int writeVarInt(long value) throws IOException | |