java.lang.Object | |
↳ | org.apache.commons.codec.binary.BinaryCodec |
Translates between byte arrays and strings of "0"s and "1"s. TODO: may want to add more bit vector functions like and/or/xor/nand TODO: also might be good to generate boolean[] from byte[] et. cetera.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decodes a byte array where each byte represents an ASCII '0' or '1'.
| |||||||||||
Decodes a byte array where each byte represents an ASCII '0' or '1'.
| |||||||||||
Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
| |||||||||||
Converts an array of raw binary data into an array of ASCII 0 and 1 chars.
| |||||||||||
Decodes a char array where each char represents an ASCII '0' or '1'.
| |||||||||||
Decodes a byte array where each byte represents an ASCII '0' or '1'.
| |||||||||||
Converts an array of raw binary data into an array of ASCII 0 and 1 character bytes - each byte is a truncated
char.
| |||||||||||
Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
| |||||||||||
Converts an array of raw binary data into a String of ASCII 0 and 1 characters.
| |||||||||||
Decodes a String where each char of the String represents an ASCII '0' or '1'.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.codec.BinaryDecoder
| |||||||||||
From interface
org.apache.commons.codec.BinaryEncoder
| |||||||||||
From interface
org.apache.commons.codec.Decoder
| |||||||||||
From interface
org.apache.commons.codec.Encoder
|
Decodes a byte array where each byte represents an ASCII '0' or '1'.
ascii | each byte represents an ASCII '0' or '1' |
---|
Decodes a byte array where each byte represents an ASCII '0' or '1'.
ascii | each byte represents an ASCII '0' or '1' |
---|
DecoderException | if argument is not a byte[], char[] or String |
---|
Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
raw | the raw binary data to convert |
---|
Converts an array of raw binary data into an array of ASCII 0 and 1 chars.
raw | the raw binary data to convert |
---|
EncoderException | if the argument is not a byte[] |
---|
Decodes a char array where each char represents an ASCII '0' or '1'.
ascii | each char represents an ASCII '0' or '1' |
---|
Decodes a byte array where each byte represents an ASCII '0' or '1'.
ascii | each byte represents an ASCII '0' or '1' |
---|
Converts an array of raw binary data into an array of ASCII 0 and 1 character bytes - each byte is a truncated char.
raw | the raw binary data to convert |
---|
Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
raw | the raw binary data to convert |
---|
Converts an array of raw binary data into a String of ASCII 0 and 1 characters.
raw | the raw binary data to convert |
---|
Decodes a String where each char of the String represents an ASCII '0' or '1'.
ascii | String of '0' and '1' characters |
---|