DixShtix

com.dixshtix.midi
Class TextData

java.lang.Object
  |
  +--com.dixshtix.midi.BinaryData
        |
        +--com.dixshtix.midi.TextData

public class TextData
extends BinaryData

TestData is implemented a a type of BinaryData.

Version:
0.1
Author:
Richard C. Penner II

Fields inherited from class com.dixshtix.midi.BinaryData
data, maxPrintLength
 
Constructor Summary
TextData(byte[] data)
          Constructor.
TextData(java.lang.String s)
          Constructor from string.
 
Method Summary
 java.lang.String getStringValue()
          Tries to produce a string from the allegedly textual data.
 byte[] getText()
          Accessor method.
 java.lang.String toString()
          Produces a short, human-readable string.
 
Methods inherited from class com.dixshtix.midi.BinaryData
getData, getData, getLength, getMaxPrintLength, hashCode, setMaxPrintLength, simpleClass
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

TextData

public TextData(byte[] data)
Constructor.

TextData

public TextData(java.lang.String s)
Constructor from string. May not be Java 1.0.3 compatible.
Method Detail

getText

public byte[] getText()
Accessor method. This is a synonym for BinaryData.getData()

getStringValue

public java.lang.String getStringValue()
Tries to produce a string from the allegedly textual data.

toString

public java.lang.String toString()
Produces a short, human-readable string. This is the ASCII string in double quotes.
Overrides:
toString in class BinaryData
Following copied from class: com.dixshtix.midi.BinaryData
See Also:
BinaryData.maxPrintLength

DixShtix