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.
|
Object |
Decoder.decode(Object source)
Decodes an "encoded" Object and returns a "decoded" Object.
|
String |
StringDecoder.decode(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(ByteBuffer buffer)
Converts a buffer of character bytes representing hexadecimal values into an array of bytes of those same values.
|
Object |
BinaryCodec.decode(Object ascii)
Decodes a byte array where each byte represents an ASCII '0' or '1'.
|
Object |
BaseNCodec.decode(Object obj)
Decodes an Object using the Base-N algorithm.
|
Object |
Hex.decode(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 int |
Hex.decodeHex(char[] data,
byte[] out,
int outOffset)
Converts an array of characters representing hexadecimal values into an array of bytes of those same values.
|
static byte[] |
Hex.decodeHex(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.
|
byte[] |
PercentCodec.decode(byte[] bytes)
Decode bytes encoded with Percent-Encoding based on RFC 3986.
|
Object |
BCodec.decode(Object value)
Decodes a Base64 object into its original form.
|
Object |
QCodec.decode(Object obj)
Decodes a quoted-printable object into its original form.
|
Object |
QuotedPrintableCodec.decode(Object obj)
Decodes a quoted-printable object into its original form.
|
Object |
URLCodec.decode(Object obj)
Decodes a URL safe object into its original form.
|
Object |
PercentCodec.decode(Object obj)
Decodes a byte[] Object, whose bytes are encoded with Percent-Encoding.
|
String |
BCodec.decode(String value)
Decodes a Base64 string into its original form.
|
String |
QCodec.decode(String str)
Decodes a quoted-printable string into its original form.
|
String |
QuotedPrintableCodec.decode(String sourceStr)
Decodes a quoted-printable string into its original form using the default string Charset.
|
String |
URLCodec.decode(String str)
Decodes a URL safe string into its original form using the default string charset.
|
String |
QuotedPrintableCodec.decode(String sourceStr,
Charset sourceCharset)
Decodes a quoted-printable string into its original form using the specified string Charset.
|
String |
QuotedPrintableCodec.decode(String sourceStr,
String sourceCharset)
Decodes a quoted-printable string into its original form using the specified string Charset.
|
String |
URLCodec.decode(String str,
String charsetName)
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.
|
static byte[] |
URLCodec.decodeUrl(byte[] bytes)
Decodes an array of URL safe 7-bit characters into an array of original bytes.
|
protected byte[] |
QCodec.doDecoding(byte[] bytes) |
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.