com.vgrs.xcode.cmdline.idna
Class IdnaCmdLine

java.lang.Object
  extended by com.vgrs.xcode.cmdline.CmdLine
      extended by com.vgrs.xcode.cmdline.idna.IdnaCmdLine

public class IdnaCmdLine
extends CmdLine

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.

Version:
1.0 Aug 10, 2010
Author:
nchigurupati

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

IdnaCmdLine

public IdnaCmdLine(java.lang.String[] args)
Parameters:
args - the command line arguments
Method Detail

setIdna

public void setIdna(Idna idna)
Sets idna value to idna

Parameters:
idna - the idna to set

main

public static void main(java.lang.String[] args)
                 throws XcodeException
Parameters:
args - the command line arguments
Throws:
XcodeException

testToAscii

public void testToAscii(java.io.File input)
Converts the code points in the given file to ASCII using the specified ACE algorithm.

Parameters:
input - file containing code points prefixed with \U or 0x.

testToUnicode

public void testToUnicode(java.io.File input)
Converts the given ASCII to a set of Unicode code points using the specified ACE algorithm.

Parameters:
input - file containing ASCII data

testToAscii

public void testToAscii(java.lang.String input)
Converts the given set of Unicode code points to ASCII using the specified ACE algorithm.

Parameters:
input - convert the given set of code points to ASCII

testToUnicode

public void testToUnicode(java.lang.String input)
                   throws XcodeException
Convert the given ASCII string to Unicode code points using the specified ACE algorithm.

Parameters:
input -
Throws:
XcodeException

getUsageOptions

public java.lang.String getUsageOptions()
Specified by:
getUsageOptions in class CmdLine
Returns:
the usage of this command line class.


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved