Enum JsonSerializedBase64Config
-
- All Implemented Interfaces:
public enum JsonSerializedBase64Config
When objects are serialized to Json using custom serializers, and they require to be encoded into base64 encoded, this enum can be used to configure how that base64 is written into the Json.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MIME
Standard base64 encoding.
MIME_NO_LINEFEEDS
Standard base64 encoding but with no line feeds.
MODIFIED_FOR_URL
Base64 encoding suitable for URLs. No line feeds, and characters that need quoting in URLs are replaced with ones that don't.
PEM
Standard base64 encoding but with shorter line lengths.
-
Method Summary
Modifier and Type Method Description static Array<JsonSerializedBase64Config>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static JsonSerializedBase64Config
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<JsonSerializedBase64Config> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
-
valueOf
static JsonSerializedBase64Config valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
-
-
-