|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ninjasoft.magiccodes.logic.Translator
Perform various translations
Constructor Summary | |
Translator()
|
Method Summary | |
static int[] |
asciiToByte(java.lang.String in)
Convert an ASCII string to a byte array |
static int[] |
binToByte(java.lang.String bin)
Convert a string of binary digits (0's and 1's) into a byte array |
static java.lang.String |
byteToAscii(int[] in)
Convert a byte array to ASCII |
static java.lang.String |
byteToBin(int[] in)
Convert a byte array to a binary string |
static java.lang.String |
byteToHex(int[] in)
Convert a byte array to a hex string |
static java.lang.String |
byteToPrintableAscii(int[] in)
Convert a byte array to printable ASCII in HTML form (red question marks for unprintable characters) |
static int[] |
hexToByte(java.lang.String in)
Convert a hex string to a byte array |
static java.lang.String |
normalizeString(java.lang.String in)
Normalize a string by removing all whitespace, control characters, and high-ASCII |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Translator()
Method Detail |
public static java.lang.String byteToBin(int[] in)
public static int[] binToByte(java.lang.String bin) throws FormatException
bin
-
FormatException
public static java.lang.String byteToHex(int[] in)
in
-
public static int[] hexToByte(java.lang.String in) throws FormatException
in
-
FormatException
public static java.lang.String byteToAscii(int[] in)
in
-
public static int[] asciiToByte(java.lang.String in)
in
-
public static java.lang.String byteToPrintableAscii(int[] in)
in
-
public static java.lang.String normalizeString(java.lang.String in)
in
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |