public class Punycode
extends java.lang.Object
Constructor and Description |
---|
Punycode() |
Modifier and Type | Method and Description |
---|---|
static int |
adapt(int delta,
int numpoints,
boolean first) |
static int |
codepoint2digit(int c) |
static java.lang.String |
decode(java.lang.String input)
Decode a punycoded string.
|
static int |
digit2codepoint(int d) |
static java.lang.String |
encode(java.lang.String input)
Punycodes a unicode string.
|
static boolean |
isBasic(char c) |
public static java.lang.String encode(java.lang.String input) throws PunycodeException
input
- Unicode string.PunycodeException
public static java.lang.String decode(java.lang.String input) throws PunycodeException
input
- Punycode stringPunycodeException
public static final int adapt(int delta, int numpoints, boolean first)
public static final boolean isBasic(char c)
public static final int digit2codepoint(int d) throws PunycodeException
PunycodeException
public static final int codepoint2digit(int c) throws PunycodeException
PunycodeException