Class MIDISystemUtil

java.lang.Object
   |
   +----MIDISystemUtil

public class MIDISystemUtil
extends Object
This class is used by instances of MIDIEvent.class.
If provides neccessary variables and methods, handling MIDI-System-messages.

Variable Index

 o hexCharFor
Array with Hex-Chars (0-f) for Dec-Value (0-15) as index.
 o manufactorNameFor
Array with Manufactor-name for Manufactor-ID as index.

Constructor Index

 o MIDISystemUtil()

Method Index

 o getEscapedText(MIDIEvent)
Returns String representing the specified EscapedSystemEvent.
 o getHexText(int, int, MIDIEvent)
Returns String representing a part of MIDI-events dataBytes in HexValues.
 o getHexValue(MIDIEvent, FileInputStream)
Stores dataBytes to MIDI-event read from specified file.
 o getMetaEventText(MIDIEvent)
Returns String representing the specified MetaEvent.
 o getSystemText(MIDIEvent)
Returns String representing the specified SysEx-, Escaped- or Meta-event.
 o getSystemValue(String, MIDIEvent, FileInputStream)
Stores dataBytes read from specified file to MIDI-event described by String.
 o getText(MIDIEvent)
Returns String representing the Text stored in MIDI-event.
 o storeText(MIDIEvent, FileInputStream)
Stores Text read from specified file to MIDI-events dataBytes.
 o sysexNameFor(MIDIEvent)
Returns Comment-String representing specified SysExEvent.

Variables

 o hexCharFor
 static final char hexCharFor[]
Array with Hex-Chars (0-f) for Dec-Value (0-15) as index.

 o manufactorNameFor
 static final String manufactorNameFor[]
Array with Manufactor-name for Manufactor-ID as index.

Constructors

 o MIDISystemUtil
 public MIDISystemUtil()

Methods

 o getText
 static String getText(MIDIEvent e) throws MIDIException
Returns String representing the Text stored in MIDI-event.
Throws Exception if no text is found.

 o storeText
 static void storeText(MIDIEvent e,
                       FileInputStream fpp) throws MIDIException
Reads text from fpp and stores it in dataBytes of MIDI-event e.
Throws exception if an IOError occurs.

 o getHexText
 static String getHexText(int first,
                          int last,
                          MIDIEvent e) throws MIDIException
Returns String representing dataBytes (from first to last) of Event e in HexValue.
Throws Exception if an IndexError occurs.

 o getHexValue
 static void getHexValue(MIDIEvent e,
                         FileInputStream fpp) throws MIDIException
Reads HexValues out of fpp and writes them into Events e DataBytes.
Throws Exception if IOError occurs.

 o sysexNameFor
 static String sysexNameFor(MIDIEvent e)
Returns String with name of SysEx-event e (if known).

 o getEscapedText
 static String getEscapedText(MIDIEvent e) throws MIDIException
Returns String representing the specified EscapedSystemEvent e.
Throws Exception if e is not an EscapedSystemEvent.

 o getMetaEventText
 static String getMetaEventText(MIDIEvent e) throws MIDIException
Returns String representing the specified MetaEvent e.
Throws Exception if e is not a MetaEvent.

 o getSystemText
 static String getSystemText(MIDIEvent e) throws MIDIException
Returns String representing the specified SysEx-, Escapes- or Meta-event e.
Throws Exception if e is not a SystemEvent.

 o getSystemValue
 static void getSystemValue(String s,
                            MIDIEvent e,
                            FileInputStream fpp) throws MIDIException
Stores dataBytes read from file fpp to MIDI-event e described by String s.
Throws Exception if IOError occurs.