|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.cmdline.CmdLine
com.vgrs.xcode.cmdline.idna.RaceCmdLine
public class RaceCmdLine
This tool compresses and converts Unicode data into an ASCII compatible sequence. This algorithm was designed for use with IDNA. No other ACE encoding is supported by the IETF. The IDNA RFC gives applications permission to choose whether or not to exclude ASCII characters which are not a letter, digit, or hyphen. If the –3 switch is given, these codepoints are allowed to be encoded by Race.
Usage: com.vgrs.xcode.cmdline.idna.RaceCmdLine [-3] (--encode | --decode) file=[file name]
| Field Summary |
|---|
| Fields inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
SWITCH_FILE |
| Constructor Summary | |
|---|---|
RaceCmdLine(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getUsageOptions()
|
static void |
main(java.lang.String[] args)
|
static void |
testDecode(java.io.File input)
Decode Race strings in the input file into Unicode code points |
static void |
testDecode(java.lang.String input)
Decode the Race string into Unicode code points |
static void |
testEncode(java.io.File input)
Encode the Unicode code points in the input file into Race string. |
static void |
testEncode(java.lang.String input)
Encode the Unicode code points in the input string into Race string. |
| Methods inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
getCommandName, getOptions, setCommandName, setOptions, showUsage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RaceCmdLine(java.lang.String[] args)
args - the command line arguments.| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static void testEncode(java.io.File input)
input - file containing Unicode code points to be encoded.public static void testDecode(java.io.File input)
input - file containing race strings to be decoded.
public static void testEncode(java.lang.String input)
throws XcodeException
input - string containing Unicode code points to be encoded.
XcodeException
public static void testDecode(java.lang.String input)
throws XcodeException
input - race string to be decoded.
XcodeExceptionpublic java.lang.String getUsageOptions()
getUsageOptions in class CmdLine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||