Package | Description |
---|---|
org.apache.commons.codec |
Interfaces and classes used by
the various implementations in the sub-packages.
|
org.apache.commons.codec.binary |
Base64, Base32, Binary, and Hexadecimal String encoding and decoding.
|
org.apache.commons.codec.net |
Network related encoding and decoding.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
BinaryDecoder.decode(byte[] source)
Decodes a byte array and returns the results as a byte array.
|
java.lang.Object |
Decoder.decode(java.lang.Object source)
Decodes an "encoded" Object and returns a "decoded" Object.
|
java.lang.String |
StringDecoder.decode(java.lang.String source)
Decodes a String and returns a String.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
Hex.decode(byte[] array)
Converts an array of character bytes representing hexadecimal values into an array of bytes of those same values.
|
byte[] |
Hex.decode(java.nio.ByteBuffer buffer)
Converts a buffer of character bytes representing hexadecimal values into an array of bytes of those same values.
|
java.lang.Object |
BaseNCodec.decode(java.lang.Object obj)
Decodes an Object using the Base-N algorithm.
|
java.lang.Object |
BinaryCodec.decode(java.lang.Object ascii)
Decodes a byte array where each byte represents an ASCII '0' or '1'.
|
java.lang.Object |
Hex.decode(java.lang.Object object)
Converts a String or an array of character bytes representing hexadecimal values into an array of bytes of those
same values.
|
static byte[] |
Hex.decodeHex(char[] data)
Converts an array of characters representing hexadecimal values into an array of bytes of those same values.
|
static byte[] |
Hex.decodeHex(java.lang.String data)
Converts a String representing hexadecimal values into an array of bytes of those same values.
|
protected static int |
Hex.toDigit(char ch,
int index)
Converts a hexadecimal character to an integer.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
QuotedPrintableCodec.decode(byte[] bytes)
Decodes an array of quoted-printable characters into an array of original bytes.
|
byte[] |
URLCodec.decode(byte[] bytes)
Decodes an array of URL safe 7-bit characters into an array of original bytes.
|
java.lang.Object |
BCodec.decode(java.lang.Object value)
Decodes a Base64 object into its original form.
|
java.lang.Object |
QCodec.decode(java.lang.Object obj)
Decodes a quoted-printable object into its original form.
|
java.lang.Object |
QuotedPrintableCodec.decode(java.lang.Object obj)
Decodes a quoted-printable object into its original form.
|
java.lang.Object |
URLCodec.decode(java.lang.Object obj)
Decodes a URL safe object into its original form.
|
java.lang.String |
BCodec.decode(java.lang.String value)
Decodes a Base64 string into its original form.
|
java.lang.String |
QCodec.decode(java.lang.String str)
Decodes a quoted-printable string into its original form.
|
java.lang.String |
QuotedPrintableCodec.decode(java.lang.String str)
Decodes a quoted-printable string into its original form using the default string charset.
|
java.lang.String |
URLCodec.decode(java.lang.String str)
Decodes a URL safe string into its original form using the default string charset.
|
java.lang.String |
QuotedPrintableCodec.decode(java.lang.String str,
java.nio.charset.Charset charset)
Decodes a quoted-printable string into its original form using the specified string charset.
|
java.lang.String |
QuotedPrintableCodec.decode(java.lang.String str,
java.lang.String charset)
Decodes a quoted-printable string into its original form using the specified string charset.
|
java.lang.String |
URLCodec.decode(java.lang.String str,
java.lang.String charset)
Decodes a URL safe string into its original form using the specified encoding.
|
static byte[] |
QuotedPrintableCodec.decodeQuotedPrintable(byte[] bytes)
Decodes an array quoted-printable characters into an array of original bytes.
|
protected java.lang.String |
RFC1522Codec.decodeText(java.lang.String text)
Applies an RFC 1522 compliant decoding scheme to the given string of text.
|
static byte[] |
URLCodec.decodeUrl(byte[] bytes)
Decodes an array of URL safe 7-bit characters into an array of original bytes.
|
(package private) static int |
Utils.digit16(byte b)
Returns the numeric value of the character
b in radix 16. |
protected byte[] |
QCodec.doDecoding(byte[] bytes) |
protected abstract byte[] |
RFC1522Codec.doDecoding(byte[] bytes)
Decodes an array of bytes using the defined encoding scheme.
|