|
|||||||||
| 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.PunycodeCmdLine
public class PunycodeCmdLine
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 Punycode.
Usage: com.vgrs.xcode.cmdline.idna.PunycodeCmdLine [-3] (--encode | --decode) file=[file name]
| Field Summary |
|---|
| Fields inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
SWITCH_FILE |
| Constructor Summary | |
|---|---|
PunycodeCmdLine(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 Punycode strings in the input file into Unicode code points |
static void |
testDecode(java.lang.String input)
Decode the Punycode string into Unicode code points |
static void |
testEncode(java.io.File input)
Encode the Unicode code points in the input file into Punycode string. |
static void |
testEncode(java.lang.String input)
Encode the Unicode code points in the input string into Punycode 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 PunycodeCmdLine(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 punycode 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 - punycode 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 | ||||||||