com.vgrs.xcode.cmdline.ext
Class DCECmdLine

java.lang.Object
  extended by com.vgrs.xcode.cmdline.CmdLine
      extended by com.vgrs.xcode.cmdline.ext.DCECmdLine

public class DCECmdLine
extends CmdLine

Makes a sequence of bytes compatible with the Domain Naming System. The algorithm uses the Base 32 encoding to create data on the range [a-z, 2-7]. Then data sequences longer than 63 characters are delimited using a FULLSTOP character.

Version:
1.0 Aug 19, 2010
Author:
nchigurupati

Field Summary
 
Fields inherited from class com.vgrs.xcode.cmdline.CmdLine
SWITCH_FILE
 
Constructor Summary
DCECmdLine(java.lang.String[] args)
           
 
Method Summary
 java.lang.String getUsageOptions()
           
static void main(java.lang.String[] args)
           
static void testDecode(java.io.File input)
          Convert the data in the file which contains dns-compatible string(s) into array of bytes.
static void testDecode(java.lang.String input)
          Convert the dns-compatible string into array of bytes
static void testEncode(java.io.File input)
          Convert the data in the file into a dns-compatible string
static void testEncode(java.lang.String input)
          Convert the input into a dns-compatible 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

DCECmdLine

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

main

public static void main(java.lang.String[] args)

testEncode

public static void testEncode(java.io.File input)
Convert the data in the file into a dns-compatible string

Parameters:
input - the file containing the data to be coverted into a dns-compatible string.

testDecode

public static void testDecode(java.io.File input)
Convert the data in the file which contains dns-compatible string(s) into array of bytes.

Parameters:
input - the input file with dns-compatible string(s).

testEncode

public static void testEncode(java.lang.String input)
                       throws XcodeException
Convert the input into a dns-compatible string

Parameters:
input - the data to be converted into a dns-compatible string.
Throws:
XcodeException

testDecode

public static void testDecode(java.lang.String input)
                       throws XcodeException
Convert the dns-compatible string into array of bytes

Parameters:
input - a dns-compatible string.
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