edu.columbia.ee.csmit.MidiKaraoke.MidiMessage
Class MidiCommandParser.Command

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser.Command
All Implemented Interfaces:
MidiCommand
Direct Known Subclasses:
MetaCommandParser.Command, MidiCommandWithChannelParser.Command
Enclosing class:
MidiCommandParser

public static class MidiCommandParser.Command
extends java.lang.Object
implements MidiCommand


Field Summary
protected  byte[] message
           
 
Constructor Summary
MidiCommandParser.Command(byte[] message)
           
 
Method Summary
 int getLength()
          Returns the length of the raw message in bytes.
 byte[] getMessage()
          Returns the raw message bytes.
protected static java.lang.String toHex(byte b)
           
protected static java.lang.String toHex(byte[] b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected byte[] message
Constructor Detail

MidiCommandParser.Command

public MidiCommandParser.Command(byte[] message)
Method Detail

getLength

public int getLength()
Description copied from interface: MidiCommand
Returns the length of the raw message in bytes.

Specified by:
getLength in interface MidiCommand
Returns:
the length of the message

getMessage

public byte[] getMessage()
Description copied from interface: MidiCommand
Returns the raw message bytes.

Specified by:
getMessage in interface MidiCommand
Returns:
the message

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toHex

protected static java.lang.String toHex(byte[] b)

toHex

protected static java.lang.String toHex(byte b)