|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.lang.Binary
Handles encoding binary as a string. Inefficient, but easy to read. State: Prototype - 20010622
| Constructor Summary | |
Binary()
|
|
| Method Summary | |
static byte[] |
binaryStringToBytes(java.lang.String str)
compress a string like "010110101010" into a byte[] |
static java.lang.String |
bytesToBinaryString(byte[] b)
show the binary for a byte array |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Binary()
| Method Detail |
public static byte[] binaryStringToBytes(java.lang.String str)
str - String encoding
public static java.lang.String bytesToBinaryString(byte[] b)
b - byte[] to be encoded
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||