|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kano.joscar.ImEncodedString
A class representing a string encoded using "IM encoding," or the method of unicode encoding used when sending instant messages.
ImEncodingParams
Method Summary | |
static ImEncodedString |
encodeString(java.lang.String string)
Returns an object representing the given string encoded with IM encoding as well as the encoding parameters used. |
byte[] |
getBytes()
Returns the raw bytes of the encoded string. |
ImEncodingParams |
getEncoding()
Returns the IM encoding parameters used to encode the associated string. |
java.lang.String |
getString()
Returns the string represented by this object. |
static java.lang.String |
readImEncodedString(ImEncodingParams encoding,
ByteBlock block)
Creates a new String from the given block of binary data
and the given encoding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String readImEncodedString(ImEncodingParams encoding, ByteBlock block)
String
from the given block of binary data
and the given encoding.
encoding
- an object representing the IM encoding parameters to be
used in decoding the given block of data into a stringblock
- a block of data containing a string encoded with the given
IM encoding parameters
String
decoded from the given block with the given
encodingpublic static ImEncodedString encodeString(java.lang.String string)
string
- the string to encode
public final ImEncodingParams getEncoding()
public final byte[] getBytes()
public final java.lang.String getString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |