|
|||||||||
| 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.common.Base32CmdLine
public class Base32CmdLine
This class converts a string of binary bytes into an ASCII compatible sequence using only the characters [a-z, 2-7]. The input sequence is read 5 bits at-a-time, and each 5 bits is converted into one of the 32 allowed characters.
| Field Summary |
|---|
| Fields inherited from class com.vgrs.xcode.cmdline.CmdLine |
|---|
SWITCH_FILE |
| Constructor Summary | |
|---|---|
Base32CmdLine(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getUsageOptions()
Return only the options for this command. |
static void |
main(java.lang.String[] args)
|
static void |
testDecode(java.io.File input)
Base32 decode the input in the file. |
static void |
testDecode(java.lang.String input)
Base32 decode the given input |
static void |
testEncode(java.io.File input)
Base32 encode the input in the file. |
static void |
testEncode(java.lang.String input)
Base32 encode the given input |
| 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 Base32CmdLine(java.lang.String[] args)
args - the command line arguments.| Method Detail |
|---|
public java.lang.String getUsageOptions()
getUsageOptions in class CmdLinepublic static void main(java.lang.String[] args)
public static void testEncode(java.io.File input)
input - the file containing the input to be base32 encoded.public static void testDecode(java.io.File input)
input - the file containing the input to be base32 decoded.
public static void testEncode(java.lang.String input)
throws XcodeException
input - Code points prefixed with \U or 0x.
XcodeException
public static void testDecode(java.lang.String input)
throws XcodeException
input - a base32 encoded string to be decoded.
XcodeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||