public class Base16 extends BaseNCodec
This class is thread-safe.
This implementation strictly follows RFC 4648, and as such unlike
the Base32
and Base64
implementations,
it does not ignore invalid alphabet characters or whitespace,
neither does it offer chunking or padding characters.
The only additional feature above those specified in RFC 4648 is support for working with a lower-case alphabet in addition to the default upper-case alphabet.
MIME_CHUNK_SIZE, PEM_CHUNK_SIZE
Constructor and Description |
---|
Base16()
Creates a Base16 codec used for decoding and encoding.
|
Base16(boolean lowerCase)
Creates a Base16 codec used for decoding and encoding.
|
Base16(boolean lowerCase,
CodecPolicy decodingPolicy)
Creates a Base16 codec used for decoding and encoding.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInAlphabet(byte octet)
Returns whether or not the
octet is in the Base16 alphabet. |
decode, decode, decode, encode, encode, encode, encodeAsString, encodeToString, getChunkSeparator, getCodecPolicy, getEncodedLength, isInAlphabet, isInAlphabet, isStrictDecoding
public Base16()
public Base16(boolean lowerCase)
lowerCase
- if true
then use a lower-case Base16 alphabet.public Base16(boolean lowerCase, CodecPolicy decodingPolicy)
lowerCase
- if true
then use a lower-case Base16 alphabet.decodingPolicy
- Decoding policy.Copyright © 2010 - 2023 Adobe. All Rights Reserved