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 |
---|---|
static CodecPolicy |
CodecPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodecPolicy[] |
CodecPolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
protected static CodecPolicy |
BaseNCodec.DECODING_POLICY_DEFAULT
The default decoding policy.
|
Modifier and Type | Method and Description |
---|---|
CodecPolicy |
BaseNCodec.getCodecPolicy()
Returns the decoding behavior policy.
|
Constructor and Description |
---|
Base16(boolean lowerCase,
CodecPolicy decodingPolicy)
Creates a Base16 codec used for decoding and encoding.
|
Base16InputStream(InputStream in,
boolean doEncode,
boolean lowerCase,
CodecPolicy decodingPolicy)
Creates a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
provided InputStream.
|
Base16OutputStream(OutputStream out,
boolean doEncode,
boolean lowerCase,
CodecPolicy decodingPolicy)
Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
original provided OutputStream.
|
Base32(int lineLength,
byte[] lineSeparator,
boolean useHex,
byte padding,
CodecPolicy decodingPolicy)
Creates a Base32 / Base32 Hex codec used for decoding and encoding.
|
Base32InputStream(InputStream input,
boolean doEncode,
int lineLength,
byte[] lineSeparator,
CodecPolicy decodingPolicy)
Creates a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
provided InputStream.
|
Base32OutputStream(OutputStream ouput,
boolean doEncode,
int lineLength,
byte[] lineSeparator,
CodecPolicy decodingPolicy)
Creates a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
original provided OutputStream.
|
Base64(int lineLength,
byte[] lineSeparator,
boolean urlSafe,
CodecPolicy decodingPolicy)
Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
|
Base64InputStream(InputStream in,
boolean doEncode,
int lineLength,
byte[] lineSeparator,
CodecPolicy decodingPolicy)
Creates a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
provided InputStream.
|
Base64OutputStream(OutputStream out,
boolean doEncode,
int lineLength,
byte[] lineSeparator,
CodecPolicy decodingPolicy)
Creates a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
original provided OutputStream.
|
BaseNCodec(int unencodedBlockSize,
int encodedBlockSize,
int lineLength,
int chunkSeparatorLength,
byte pad,
CodecPolicy decodingPolicy)
Note
lineLength is rounded down to the nearest multiple of the encoded block size. |
Constructor and Description |
---|
BCodec(Charset charset,
CodecPolicy decodingPolicy)
Constructor which allows for the selection of a default Charset.
|
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.