|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kano.joscar.StringBlock
A very simple but very common data structure containing a string and the total size of the structure that held that string (including the string itself).
| Constructor Summary | |
StringBlock(java.lang.String string,
int totalSize)
Creates a new StringBlock object with the given
properties. |
|
| Method Summary | |
java.lang.String |
getString()
Returns the string read from binary data to create this structure. |
int |
getTotalSize()
Returns the total size of this object, as read from a block of binary data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringBlock(java.lang.String string,
int totalSize)
StringBlock object with the given
properties.
string - the string readtotalSize - the size of this structure, as read from a block of
binary data| Method Detail |
public final java.lang.String getString()
public final int getTotalSize()
getString().length() +
1, but that is not always the case.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||