|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kano.joscar.ImEncodingParams
Represents a set of IM encoding parameters that define the way an IM-encoded string is encoded and decoded.
ImEncodedString
Field Summary | |
static int |
CHARSET_ASCII
A charset code indicating US-ASCII encoding. |
static int |
CHARSET_ISO
A charset code indicating ISO-8859-1 encoding. |
static int |
CHARSET_UTF16
A charset code indicating UCS-2BE, or UTF-16BE. |
static int |
CHARSUBSET_DEFAULT
A charset "subcode" that is sent by default. |
Constructor Summary | |
ImEncodingParams(int charsetCode)
Creates a new IM encoding parameters object with the given charset code and a "charsubset" code of CHARSUBSET_DEFAULT . |
|
ImEncodingParams(int charsetCode,
int charsetSubcode)
Creates a new IM encoding parameters object with the given charset and "charsubset" codes. |
Method Summary | |
int |
getCharsetCode()
Returns the charset code contained in this object. |
int |
getCharsetSubcode()
Returns the charset "subcode" contained in this object. |
java.lang.String |
toCharsetName()
Attempts to produce the name of a charset (like "US-ASCII" )
from this set of encoding parameters. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CHARSET_ASCII
public static final int CHARSET_ISO
public static final int CHARSET_UTF16
public static final int CHARSUBSET_DEFAULT
Constructor Detail |
public ImEncodingParams(int charsetCode)
CHARSUBSET_DEFAULT
.
charsetCode
- a charset code, like CHARSET_ASCII
public ImEncodingParams(int charsetCode, int charsetSubcode)
charsetCode
- a charset code, like CHARSET_ASCII
charsetSubcode
- a charset "subcode," like CHARSUBSET_DEFAULT
Method Detail |
public final int getCharsetCode()
CHARSET_ASCII
, CHARSET_ISO
, and CHARSET_UTF16
.
public final int getCharsetSubcode()
CHARSUBSET_DEFAULT
.
public final java.lang.String toCharsetName()
"US-ASCII"
)
from this set of encoding parameters. Returns null
if this
object represents an unknown charset.
null
if unknownpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |