|
|||||||||
| 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.IdnaCmdLine
public class IdnaCmdLine
Internationalized Domain Names in Applications. A set of algorithms, which define a way to encode and decode Unicode data making it compatible with the Domain Naming System.
| Field Summary |
|---|
| Fields inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
SWITCH_FILE |
| Constructor Summary | |
|---|---|
IdnaCmdLine(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getUsageOptions()
|
static void |
main(java.lang.String[] args)
|
void |
setIdna(Idna idna)
Sets idna value to idna |
void |
testToAscii(java.io.File input)
Converts the code points in the given file to ASCII using the specified ACE algorithm. |
void |
testToAscii(java.lang.String input)
Converts the given set of Unicode code points to ASCII using the specified ACE algorithm. |
void |
testToUnicode(java.io.File input)
Converts the given ASCII to a set of Unicode code points using the specified ACE algorithm. |
void |
testToUnicode(java.lang.String input)
Convert the given ASCII string to Unicode code points using the specified ACE algorithm. |
| 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 IdnaCmdLine(java.lang.String[] args)
args - the command line arguments| Method Detail |
|---|
public void setIdna(Idna idna)
idna - the idna to set
public static void main(java.lang.String[] args)
throws XcodeException
args - the command line arguments
XcodeExceptionpublic void testToAscii(java.io.File input)
input - file containing code points prefixed with \U or 0x.public void testToUnicode(java.io.File input)
input - file containing ASCII datapublic void testToAscii(java.lang.String input)
input - convert the given set of code points to ASCII
public void testToUnicode(java.lang.String input)
throws XcodeException
input -
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 | ||||||||