public class StringDataBox extends DataBox
DataBox.Types| Constructor and Description | 
|---|
StringDataBox()
Construct an empty StringDataBox. 
 | 
StringDataBox(byte[] buf)
Construct a StringDataBox from the bytes in buf. 
 | 
StringDataBox(int len)  | 
StringDataBox(String s,
             int len)
Construct a StringDataBox with length len and value s. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(Object obj)  | 
boolean | 
equals(Object obj)  | 
byte[] | 
getBytes()
Returns a byte array with the data contained by this DataBox. 
 | 
int | 
getSize()
Returns the fixed size of this DataBox. 
 | 
String | 
getString()  | 
void | 
setString(String s,
         int len)  | 
String | 
toString()  | 
DataBox.Types | 
type()
Returns the type of the DataBox. 
 | 
public StringDataBox()
public StringDataBox(String s, int len)
s - the value of the StringDataBoxlen - the length of the StringDataBoxpublic StringDataBox(byte[] buf)
buf - the byte buffer sourcepublic StringDataBox(int len)
public DataBox.Types type()
DataBoxpublic int compareTo(Object obj)
compareTo in interface ComparablecompareTo in class DataBoxpublic byte[] getBytes()
DataBoxpublic int getSize()
DataBoxCopyright © 2017. All rights reserved.