Package com.fasterxml.jackson.core
Enum Base64Variant.PaddingReadBehaviour
java.lang.Object
java.lang.Enum<Base64Variant.PaddingReadBehaviour>
com.fasterxml.jackson.core.Base64Variant.PaddingReadBehaviour
- All Implemented Interfaces:
Serializable
,Comparable<Base64Variant.PaddingReadBehaviour>
,java.lang.constant.Constable
- Enclosing class:
- Base64Variant
public static enum Base64Variant.PaddingReadBehaviour
extends Enum<Base64Variant.PaddingReadBehaviour>
Defines how the Base64Variant deals with Padding while reading
- Since:
- 2.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPadding is allowed but not required in Base64 content being read: no exception thrown based on existence or absence, as long as proper padding characters are used.Padding is not allowed in Base64 content being read (finding something that looks like padding at the end of content results in an exception)Padding is required in Base64 content being read (missing padding for incomplete ending quartet results in an exception) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static Base64Variant.PaddingReadBehaviour[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PADDING_FORBIDDEN
Padding is not allowed in Base64 content being read (finding something that looks like padding at the end of content results in an exception) -
PADDING_REQUIRED
Padding is required in Base64 content being read (missing padding for incomplete ending quartet results in an exception) -
PADDING_ALLOWED
Padding is allowed but not required in Base64 content being read: no exception thrown based on existence or absence, as long as proper padding characters are used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-