java.lang.Object | |
↳ | com.fasterxml.jackson.core.Base64Variant |
Abstract base class used to define specific details of which variant of Base64 encoding/decoding is to be used. Although there is somewhat standard basic version (so-called "MIME Base64"), other variants exists, see Base64 Wikipedia entry for details.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BASE64_VALUE_INVALID | Marker used to denote ascii characters that do not correspond to a 6-bit value (in this variant), and is not used as a padding character. | |||||||||
int | BASE64_VALUE_PADDING | Marker used to denote ascii character (in decoding table) that is the padding character using this variant (if any). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
"Copy constructor" that can be used when the base alphabet is identical
to one used by another variant except for the maximum line length
(and obviously, name).
| |||||||||||
"Copy constructor" that can be used when the base alphabet is identical
to one used by another variant, but other details (padding, maximum
line length) differ
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method for converting given byte array as base64 encoded
String using this variant's settings, optionally enclosed in
double-quotes.
| |||||||||||
Convenience method for converting given byte array as base64 encoded
String using this variant's settings.
| |||||||||||
Method that encodes given right-aligned (LSB) 24-bit value
into 4 base64 characters, stored in given result buffer.
| |||||||||||
Method that encodes given right-aligned (LSB) 24-bit value
into 4 base64 bytes (ascii), stored in given result buffer.
| |||||||||||
Method that outputs partial chunk (which only encodes one
or two bytes of data).
| |||||||||||
Method that outputs partial chunk (which only encodes one
or two bytes of data).
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Marker used to denote ascii characters that do not correspond to a 6-bit value (in this variant), and is not used as a padding character.
Marker used to denote ascii character (in decoding table) that is the padding character using this variant (if any).
"Copy constructor" that can be used when the base alphabet is identical to one used by another variant except for the maximum line length (and obviously, name).
"Copy constructor" that can be used when the base alphabet is identical to one used by another variant, but other details (padding, maximum line length) differ
Convenience method for converting given byte array as base64 encoded String using this variant's settings, optionally enclosed in double-quotes.
input | Byte array to encode |
---|---|
addQuotes | Whether to surround resulting value in double quotes or not |
Convenience method for converting given byte array as base64 encoded String using this variant's settings. Resulting value is "raw", that is, not enclosed in double-quotes.
input | Byte array to encode |
---|
Method that encodes given right-aligned (LSB) 24-bit value into 4 base64 characters, stored in given result buffer.
Method that encodes given right-aligned (LSB) 24-bit value into 4 base64 bytes (ascii), stored in given result buffer.
Method that outputs partial chunk (which only encodes one or two bytes of data). Data given is still aligned same as if it as full data; that is, missing data is at the "right end" (LSB) of int.
outputBytes | Number of encoded bytes included (either 1 or 2) |
---|
Method that outputs partial chunk (which only encodes one or two bytes of data). Data given is still aligned same as if it as full data; that is, missing data is at the "right end" (LSB) of int.
outputBytes | Number of encoded bytes included (either 1 or 2) |
---|