public class Punycode extends 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 String |
decode(String input)
Decode a punycoded string.
|
static int |
digit2codepoint(int d) |
static String |
encode(String input)
Punycodes a unicode string.
|
static boolean |
isBasic(char c) |
public static String encode(String input) throws PunycodeException
input
- Unicode string.PunycodeException
public static String decode(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
Copyright © 2019 "Tigase, Inc.". All rights reserved.