|
DixShtix | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.dixshtix.midi.BinaryData
BinaryData is a wrapper for byte[] which should make it type-safe. This is not a very good example of a class. There is no Midi-specific data here.
| Field Summary | |
(package private) byte[] |
data
The actual data encapsulated by this class. |
(package private) static int |
maxPrintLength
Controls how many bytes to print in text dump. |
| Constructor Summary | |
BinaryData(byte[] data)
Initializer. |
|
| Method Summary | |
byte[] |
getData()
Accessor Method. |
byte |
getData(int index)
Accessor Method. |
int |
getLength()
Accessor Method. |
static int |
getMaxPrintLength()
Exposes the maximum number of bytes to be printed by this class. |
int |
hashCode()
Accessor Method. |
static void |
setMaxPrintLength(int num)
Exposes the maximum number of bytes to be printed by this class. |
static java.lang.String |
simpleClass(java.lang.String s)
Get the short name of a fully qualified class name. |
java.lang.String |
toString()
Accessor Method. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
byte[] data
static int maxPrintLength
toString()| Constructor Detail |
public BinaryData(byte[] data)
data - An array of data bytes.| Method Detail |
public int getLength()
public byte getData(int index)
index - Offset into the array of bytes.public byte[] getData()
public int hashCode()
hashCode in class java.lang.Objectpublic static java.lang.String simpleClass(java.lang.String s)
s - A String in the form package.Classpublic static int getMaxPrintLength()
toString()public static void setMaxPrintLength(int num)
num - The maximum bytes to print; other bytes are printed
as ellipses.public java.lang.String toString()
toString in class java.lang.ObjectmaxPrintLength
|
DixShtix | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||