All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.inet.encoding.Punycode

java.lang.Object
   |
   +----gnu.inet.encoding.Punycode

public class Punycode
extends Object

Constructor Index

 o Punycode()

Method Index

 o adapt(int, int, boolean)
 o codepoint2digit(int)
 o decode(String)
Decode a punycoded string.
 o digit2codepoint(int)
 o encode(String)
Punycodes a unicode string.
 o isBasic(char)

Constructors

 o Punycode
 public Punycode()

Methods

 o encode
 public static String encode(String input) throws PunycodeException
Punycodes a unicode string.

Parameters:
input - Unicode string.
Returns:
Punycoded string.
 o decode
 public static String decode(String input) throws PunycodeException
Decode a punycoded string.

Parameters:
input - Punycode string
Returns:
Unicode string.
 o adapt
 public static final int adapt(int delta,
                               int numpoints,
                               boolean first)
 o isBasic
 public static final boolean isBasic(char c)
 o digit2codepoint
 public static final int digit2codepoint(int d) throws PunycodeException
 o codepoint2digit
 public static final int codepoint2digit(int c) throws PunycodeException

All Packages  Class Hierarchy  This Package  Previous  Next  Index