|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmx.udlap.kjProtocol.packets.KString
Contains a byte array String with a 4 bytes length field.
| Field Summary | |
KInteger |
length
|
byte[] |
value
|
| Constructor Summary | |
protected |
KString()
|
|
KString(byte[] value)
Constructor for the KString object |
|
KString(java.lang.String value)
Constructor for the KString object |
|
KString(java.lang.String value,
java.lang.String charsetName)
Constructor for the KString object |
| Method Summary | |
byte[] |
getBytes()
Gets the bytes attribute of the KString object |
KInteger |
getLength()
Gets the lenght attribute of the KString object |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public KInteger length
public byte[] value
| Constructor Detail |
protected KString()
public KString(java.lang.String value)
value - String contained in a String field
public KString(java.lang.String value,
java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
value - String contained in a String fieldcharsetName - Charset Name to use for converting String to bytes
java.io.UnsupportedEncodingException - Description of the Exceptionpublic KString(byte[] value)
value - Byte array contained in a String field| Method Detail |
public byte[] getBytes()
With the form: <length><StringBytes>
public java.lang.String toString()
public KInteger getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||