com.vgrs.xcode.idna
Class Race
java.lang.Object
com.vgrs.xcode.idna.Ace
com.vgrs.xcode.idna.Race
public final class Race
- extends Ace
This class implements the ASCII-Compatible Encoding (ACE) algorithm Race.
|
Constructor Summary |
Race()
Race constructed using default values |
Race(boolean aUseStd3AsciiRules)
|
Race(java.lang.String aPrefix)
|
Race(java.lang.String aPrefix,
boolean aUseStd3AsciiRules)
|
|
Method Summary |
protected int[] |
internalDecode(char[] aInput)
Ace specific decoding to be performed on the given input. |
protected char[] |
internalEncode(int[] aInput)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PREFIX
public static final java.lang.String DEFAULT_PREFIX
- Encode Unicode data in a format compatible with the ASCII standard. The
most recent version of the Race draft specifies "bq--" as the prefix which
designates a domain label as Race encoded. Because this draft has been
expired for some time, this implementation offers the ability to set an
alternate prefix during object construction.
- See Also:
- Constant Field Values
DOUBLE_ESCAPE
public static final char DOUBLE_ESCAPE
- See Also:
- Constant Field Values
NULL_COMPRESSION_FLAG
public static final byte NULL_COMPRESSION_FLAG
- See Also:
- Constant Field Values
DOUBLE_F
public static final byte DOUBLE_F
- See Also:
- Constant Field Values
DOUBLE_9
public static final byte DOUBLE_9
- See Also:
- Constant Field Values
ZERO
public static final byte ZERO
- See Also:
- Constant Field Values
MAX_COMPRESSION_SIZE
public static final int MAX_COMPRESSION_SIZE
- See Also:
- Constant Field Values
Race
public Race()
- Race constructed using default values
Race
public Race(java.lang.String aPrefix)
- Parameters:
aPrefix - the prefix for Race
Race
public Race(boolean aUseStd3AsciiRules)
- Parameters:
aUseStd3AsciiRules - A flag indicating whether the validation algorithm will use the STD
3 ASCII Rules.
Race
public Race(java.lang.String aPrefix,
boolean aUseStd3AsciiRules)
- Parameters:
aPrefix - the prefix for RaceaUseStd3AsciiRules - A flag indicating whether the validation algorithm will use the STD
3 ASCII Rules.
internalEncode
protected char[] internalEncode(int[] aInput)
throws XcodeException
- Specified by:
internalEncode in class Ace
- Throws:
XcodeException
internalDecode
protected int[] internalDecode(char[] aInput)
throws XcodeException
- Description copied from class:
Ace
- Ace specific decoding to be performed on the given input.
- Specified by:
internalDecode in class Ace
- Parameters:
aInput - a UTF16 character array to be decoded into Unicode code points.
- Returns:
- decoded Unicode code points
- Throws:
XcodeException
Copyright © 2000-2010 VeriSign Inc. All Rights Reserved