com.vgrs.xcode.cmdline.ext
Class DCECmdLine
java.lang.Object
com.vgrs.xcode.cmdline.CmdLine
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.
- Usage: com.vgrs.xcode.cmdline.ext.DCECmdLine (--encode |
--decode) file=[file name]
- Input type: Native for encode, ASCII for decode
- Output type: ASCII for encode, Native for decode
- Version:
- 1.0 Aug 19, 2010
- Author:
- nchigurupati
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCECmdLine
public DCECmdLine(java.lang.String[] args)
- Parameters:
args - the command line arguments.
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