Class Codepoint

java.lang.Object
org.apache.abdera.i18n.text.Codepoint
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Codepoint>

@Deprecated(since="2021-07-29") public class Codepoint extends Object implements Serializable, Cloneable, Comparable<Codepoint>
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Represents a single Unicode Codepoint
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Codepoint(byte[] bytes)
    Deprecated.
    Create a Codepoint from a byte array using the default encoding (UTF-8)
    Codepoint(byte[] bytes, String encoding)
    Deprecated.
    Create a Codepoint from a byte array with the specified charset encoding.
    Codepoint(char value)
    Deprecated.
    Create a codepoint from a single char
    Codepoint(char high, char low)
    Deprecated.
    Create a codepoint from a surrogate pair
    Codepoint(int value)
    Deprecated.
    Create a codepoint from a specific integer value
    Deprecated.
    Create a Codepoint from a CharSequence.
    Codepoint(Codepoint codepoint)
    Deprecated.
    Create a codepoint as a copy of another codepoint
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    int
    Deprecated.
     
    boolean
    Deprecated.
     
    int
    Deprecated.
    Get the number of chars necessary to represent this codepoint.
    char
    Deprecated.
    Get the high surrogate of this Codepoint
    char
    Deprecated.
    Get the low surrogate of this Codepoint
    int
    Deprecated.
    Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP).
    int
    Deprecated.
    The codepoint value
    int
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
    True if this Codepoint is a bidi control char
    boolean
    Deprecated.
     
    boolean
    Deprecated.
    True if this codepoint is a high surrogate
    boolean
    Deprecated.
    True if this codepoint is a low surrogate
    boolean
    Deprecated.
    True if this codepoint is supplementary
    Deprecated.
    Get the next codepoint
    Deprecated.
    Get the previous codepoint
    byte[]
    Deprecated.
     
    byte[]
    toBytes(String encoding)
    Deprecated.
     
    char[]
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Codepoint

      public Codepoint(byte[] bytes)
      Deprecated.
      Create a Codepoint from a byte array using the default encoding (UTF-8)
    • Codepoint

      public Codepoint(byte[] bytes, String encoding) throws UnsupportedEncodingException
      Deprecated.
      Create a Codepoint from a byte array with the specified charset encoding. Length must equal 1
      Throws:
      UnsupportedEncodingException
    • Codepoint

      public Codepoint(CharSequence value)
      Deprecated.
      Create a Codepoint from a CharSequence. Length must equal 1
    • Codepoint

      public Codepoint(char value)
      Deprecated.
      Create a codepoint from a single char
    • Codepoint

      public Codepoint(char high, char low)
      Deprecated.
      Create a codepoint from a surrogate pair
    • Codepoint

      public Codepoint(Codepoint codepoint)
      Deprecated.
      Create a codepoint as a copy of another codepoint
    • Codepoint

      public Codepoint(int value)
      Deprecated.
      Create a codepoint from a specific integer value
  • Method Details

    • getValue

      public int getValue()
      Deprecated.
      The codepoint value
    • isSupplementary

      public boolean isSupplementary()
      Deprecated.
      True if this codepoint is supplementary
    • isLowSurrogate

      public boolean isLowSurrogate()
      Deprecated.
      True if this codepoint is a low surrogate
    • isHighSurrogate

      public boolean isHighSurrogate()
      Deprecated.
      True if this codepoint is a high surrogate
    • getHighSurrogate

      public char getHighSurrogate()
      Deprecated.
      Get the high surrogate of this Codepoint
    • getLowSurrogate

      public char getLowSurrogate()
      Deprecated.
      Get the low surrogate of this Codepoint
    • isBidi

      public boolean isBidi()
      Deprecated.
      True if this Codepoint is a bidi control char
    • isDigit

      public boolean isDigit()
      Deprecated.
    • isAlpha

      public boolean isAlpha()
      Deprecated.
    • isAlphaDigit

      public boolean isAlphaDigit()
      Deprecated.
    • compareTo

      public int compareTo(Codepoint o)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<Codepoint>
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • toChars

      public char[] toChars()
      Deprecated.
    • getCharCount

      public int getCharCount()
      Deprecated.
      Get the number of chars necessary to represent this codepoint. Returns 2 if this is a supplementary codepoint
    • toBytes

      public byte[] toBytes()
      Deprecated.
    • toBytes

      public byte[] toBytes(String encoding) throws UnsupportedEncodingException
      Deprecated.
      Throws:
      UnsupportedEncodingException
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • getPlane

      public int getPlane()
      Deprecated.
      Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP). This is the plane containing most of the character assignments so far. A primary objective for the BMP is to support the unification of prior character sets as well as characters for writing systems in current use. Plane 1 (10000–1FFFF): Supplementary Multilingual Plane (SMP). Plane 2 (20000–2FFFF): Supplementary Ideographic Plane (SIP) Planes 3 to 13 (30000–DFFFF) are unassigned Plane 14 (E0000–EFFFF): Supplementary Special-purpose Plane (SSP) Plane 15 (F0000–FFFFF) reserved for the Private Use Area (PUA) Plane 16 (100000–10FFFF), reserved for the Private Use Area (PUA)
    • clone

      public Codepoint clone()
      Deprecated.
    • next

      public Codepoint next()
      Deprecated.
      Get the next codepoint
    • previous

      public Codepoint previous()
      Deprecated.
      Get the previous codepoint