|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.idna.Ace
public abstract class Ace
An abstract class implementing logic common to all ASCII Compatible Encodings.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_USE_STD_3_ASCII_RULES
|
| Constructor Summary | |
|---|---|
Ace(java.lang.String aPrefix,
boolean aUseStd3AsciiRules)
|
|
| Method Summary | |
|---|---|
int[] |
decode(char[] aInput)
Decode a single domain label using the Ace algorithm. |
int[] |
domainDecode(char[] aInput)
Decode an entire domain using the Ace algorithm. |
char[] |
domainEncode(int[] aInput)
Encode an entire domain using the Ace algorithm. |
char[] |
encode(int[] aInput)
Encode a single domain label using the Ace algorithm. |
protected abstract int[] |
internalDecode(char[] aInput)
Ace specific decoding to be performed on the given input. |
protected abstract char[] |
internalEncode(int[] input)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_USE_STD_3_ASCII_RULES
| Constructor Detail |
|---|
public Ace(java.lang.String aPrefix,
boolean aUseStd3AsciiRules)
aPrefix - Prefix for this AceaUseStd3AsciiRules - boolean indicating if only letters, digits and hyphens are allowed
in the IDN.| Method Detail |
|---|
public char[] domainEncode(int[] aInput)
throws XcodeException
aInput - An int array representing a domain name
XcodeException - when the input is null or empty or the input contains non-standard
3 ASCII character or the encoded domain name is empty or longer
than 63.
public int[] domainDecode(char[] aInput)
throws XcodeException
aInput - A char array representing an encoded domain name
XcodeException - when the input is null or empty
public char[] encode(int[] aInput)
throws XcodeException
aInput - An int array representing a domain name
XcodeException - when the input is null or empty or the input contains non-standard
3 ASCII character or the encoded domain name is empty or longer
than 63.
protected abstract char[] internalEncode(int[] input)
throws XcodeException
XcodeException
public int[] decode(char[] aInput)
throws XcodeException
aInput - A char array representing an encoded domain name
XcodeException - when the input is null or empty
protected abstract int[] internalDecode(char[] aInput)
throws XcodeException
aInput - a UTF16 character array to be decoded into Unicode code points.
XcodeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||