|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.charcode.UnicodeCharacterSet
public final class UnicodeCharacterSet
This class defines properties of the Unicode character set
Method Summary | |
---|---|
static int |
decodeUTF8(byte[] in,
int used)
Decode a UTF8 character |
static UnicodeCharacterSet |
getInstance()
|
static int |
getUTF8Encoding(char in,
char in2,
byte[] out)
Static method to generate the UTF-8 representation of a Unicode character |
boolean |
inCharset(int c)
Determine if a character is present in the character set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UnicodeCharacterSet getInstance()
public boolean inCharset(int c)
CharacterSet
inCharset
in interface CharacterSet
public static int getUTF8Encoding(char in, char in2, byte[] out)
in
- the Unicode character, or the high half of a surrogate pairin2
- the low half of a surrogate pair (ignored unless the first argument is in the
range for a surrogate pair)out
- an array of at least 4 bytes to hold the UTF-8 representation.
public static int decodeUTF8(byte[] in, int used) throws IllegalArgumentException
IllegalArgumentException
- if the byte sequence is not a valid UTF-8 representation
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |