Note that for default Base64Variant instances listed above, configuration
is such that if padding is written on output, it will also be required on
reading. This behavior may be changed by using methods:
| Modifier and Type | Field and Description |
|---|---|
| public static final Base64Variant | MIME
This variant is what most people would think of "the standard" Base64 encoding. |
| public static final Base64Variant | MIME_NO_LINEFEEDS
Slightly non-standard modification of |
| public static final Base64Variant | MODIFIED_FOR_URL
This non-standard variant is usually used when encoded data needs to be passed via URLs (such as part of GET request). |
| public static final Base64Variant | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Base64Variant | Returns: Default variant (MIME_NO_LINEFEEDS)Method used to get the default variant -- |
| public static Base64Variant |
| MIME | back to summary |
|---|---|
| public static final Base64Variant MIME This variant is what most people would think of "the standard" Base64 encoding. See wikipedia Base64 entry for details. Note that although this can be thought of as the standard variant, it is not the default for Jackson: no-linefeeds alternative is instead used because of JSON requirement of escaping all linefeeds.
Writes padding on output; requires padding when reading (may change later with a call to | |
| MIME_NO_LINEFEEDS | back to summary |
|---|---|
| public static final Base64Variant MIME_NO_LINEFEEDS Slightly non-standard modification of
Writes padding on output; requires padding when reading (may change later with a call to | |
| MODIFIED_FOR_URL | back to summary |
|---|---|
| public static final Base64Variant MODIFIED_FOR_URL This non-standard variant is usually used when encoded data needs to be
passed via URLs (such as part of GET request). It differs from the
base
Does not write padding on output; does not accept padding when reading (may change later with a call to | |
| PEM | back to summary |
|---|---|
| public static final Base64Variant PEM This variant is the one that predates
Writes padding on output; requires padding when reading (may change later with a call to | |
| STD_BASE64_ALPHABET | back to summary |
|---|---|
| pack-priv static final String STD_BASE64_ALPHABET | |
| Base64Variants | back to summary |
|---|---|
| public Base64Variants() | |
| getDefaultVariant | back to summary |
|---|---|
| public static Base64Variant getDefaultVariant() Method used to get the default variant --
| |
| valueOf | back to summary |
|---|---|
| public static Base64Variant valueOf(String name) throws IllegalArgumentException Lookup method for finding one of standard variants by name.
If name does not match any of standard variant names,
a
| |