|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.i18n.text.Codepoint
public class Codepoint
Represents a single Unicode Codepoint
Constructor Summary | |
---|---|
Codepoint(byte[] bytes)
Create a Codepoint from a byte array using the default encoding (UTF-8) |
|
Codepoint(byte[] bytes,
String encoding)
Create a Codepoint from a byte array with the specified charset encoding. |
|
Codepoint(char value)
Create a codepoint from a single char |
|
Codepoint(char high,
char low)
Create a codepoint from a surrogate pair |
|
Codepoint(CharSequence value)
Create a Codepoint from a CharSequence. |
|
Codepoint(Codepoint codepoint)
Create a codepoint as a copy of another codepoint |
|
Codepoint(int value)
Create a codepoint from a specific integer value |
Method Summary | |
---|---|
Codepoint |
clone()
|
int |
compareTo(Codepoint o)
|
boolean |
equals(Object obj)
|
int |
getCharCount()
Get the number of chars necessary to represent this codepoint. |
char |
getHighSurrogate()
Get the high surrogate of this Codepoint |
char |
getLowSurrogate()
Get the low surrogate of this Codepoint |
int |
getPlane()
Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP). |
int |
getValue()
The codepoint value |
int |
hashCode()
|
boolean |
isAlpha()
|
boolean |
isAlphaDigit()
|
boolean |
isBidi()
True if this Codepoint is a bidi control char |
boolean |
isDigit()
|
boolean |
isHighSurrogate()
True if this codepoint is a high surrogate |
boolean |
isLowSurrogate()
True if this codepoint is a low surrogate |
boolean |
isSupplementary()
True if this codepoint is supplementary |
Codepoint |
next()
Get the next codepoint |
Codepoint |
previous()
Get the previous codepoint |
byte[] |
toBytes()
|
byte[] |
toBytes(String encoding)
|
char[] |
toChars()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Codepoint(byte[] bytes)
public Codepoint(byte[] bytes, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public Codepoint(CharSequence value)
public Codepoint(char value)
public Codepoint(char high, char low)
public Codepoint(Codepoint codepoint)
public Codepoint(int value)
Method Detail |
---|
public int getValue()
public boolean isSupplementary()
public boolean isLowSurrogate()
public boolean isHighSurrogate()
public char getHighSurrogate()
public char getLowSurrogate()
public boolean isBidi()
public boolean isDigit()
public boolean isAlpha()
public boolean isAlphaDigit()
public int compareTo(Codepoint o)
compareTo
in interface Comparable<Codepoint>
public String toString()
toString
in class Object
public char[] toChars()
public int getCharCount()
public byte[] toBytes()
public byte[] toBytes(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int getPlane()
public Codepoint clone()
clone
in class Object
public Codepoint next()
public Codepoint previous()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |