public class Codepoint extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Codepoint>
| Constructor and Description |
|---|
Codepoint(byte[] bytes)
Create a Codepoint from a byte array using the default encoding (UTF-8)
|
Codepoint(byte[] bytes,
java.lang.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(java.lang.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
|
| Modifier and Type | Method and Description |
|---|---|
Codepoint |
clone() |
int |
compareTo(Codepoint o) |
boolean |
equals(java.lang.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(java.lang.String encoding) |
char[] |
toChars() |
java.lang.String |
toString() |
public Codepoint(byte[] bytes)
public Codepoint(byte[] bytes,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic Codepoint(java.lang.CharSequence value)
public Codepoint(char value)
public Codepoint(char high,
char low)
public Codepoint(Codepoint codepoint)
public Codepoint(int value)
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 java.lang.Comparable<Codepoint>public java.lang.String toString()
toString in class java.lang.Objectpublic char[] toChars()
public int getCharCount()
public byte[] toBytes()
public byte[] toBytes(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getPlane()
public Codepoint clone()
clone in class java.lang.Objectpublic Codepoint next()
public Codepoint previous()
Copyright © 2010 - 2023 Adobe. All Rights Reserved