# Uses of Class
com.fasterxml.jackson.core.Base64Variant

Packages that use Base64Variant
Package
Description
com.fasterxml.jackson.core
Main public API classes of the core streaming JSON processor: most importantly `JsonFactory` used for constructing JSON parser (`JsonParser`) and generator (`JsonGenerator`) instances.
com.fasterxml.jackson.core.base
Base classes used by concrete Parser and Generator implementations; contain functionality that is not specific to JSON or input abstraction (byte vs char).
com.fasterxml.jackson.core.filter
com.fasterxml.jackson.core.json
JSON-specific parser and generator implementation classes that Jackson defines and uses.
com.fasterxml.jackson.core.json.async
Non-blocking ("async") JSON parser implementation.
com.fasterxml.jackson.core.util
Utility classes used by Jackson Core functionality.

## Uses of Base64Variant in com.fasterxml.jackson.core

Fields in com.fasterxml.jackson.core declared as Base64Variant
Modifier and Type
Field
Description
`static final Base64Variant`
Base64Variants.`MIME`
This variant is what most people would think of "the standard" Base64 encoding.
`static final Base64Variant`
Base64Variants.`MIME_NO_LINEFEEDS`
Slightly non-standard modification of `Base64Variants.MIME` which does not use linefeeds (max line length set to infinite).
`static final Base64Variant`
Base64Variants.`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).
`static final Base64Variant`
Base64Variants.`PEM`
This variant is the one that predates `Base64Variants.MIME`: it is otherwise identical, except that it mandates shorter line length.
Methods in com.fasterxml.jackson.core that return Base64Variant
Modifier and Type
Method
Description
`static Base64Variant`
Base64Variants.`getDefaultVariant()`
Method used to get the default variant -- `Base64Variants.MIME_NO_LINEFEEDS` -- for cases where caller does not explicitly specify the variant.
`static Base64Variant`
Base64Variants.`valueOf(String name)`
Lookup method for finding one of standard variants by name.
`Base64Variant`
Base64Variant.`withPaddingAllowed()`
`Base64Variant`
Base64Variant.`withPaddingForbidden()`
`Base64Variant`
Base64Variant.`withPaddingRequired()`
`Base64Variant`
Base64Variant.`withReadPadding(Base64Variant.PaddingReadBehaviour readPadding)`
`Base64Variant`
Base64Variant.`withWritePadding(boolean writePadding)`
Methods in com.fasterxml.jackson.core with parameters of type Base64Variant
Modifier and Type
Method
Description
`abstract byte[]`
JsonParser.`getBinaryValue(Base64Variant bv)`
Method that can be used to read (and consume -- results may not be accessible using other methods after the call) base64-encoded binary data included in the current textual JSON value.
`int`
JsonParser.`readBinaryValue(Base64Variant bv, OutputStream out)`
Similar to `JsonParser.readBinaryValue(OutputStream)` but allows explicitly specifying base64 variant to use.
`abstract void`
JsonGenerator.`writeBinary(Base64Variant bv, byte[] data, int offset, int len)`
Method that will output given chunk of binary data as base64 encoded, as a complete String value (surrounded by double quotes).
`abstract int`
JsonGenerator.`writeBinary(Base64Variant bv, InputStream data, int dataLength)`
Method similar to `JsonGenerator.writeBinary(Base64Variant,byte[],int,int)`, but where input is provided through a stream, allowing for incremental writes without holding the whole input in memory.
Constructors in com.fasterxml.jackson.core with parameters of type Base64Variant
Modifier
Constructor
Description
``
`Base64Variant(Base64Variant base, String name, boolean writePadding, char paddingChar, int maxLineLength)`
"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
``
`Base64Variant(Base64Variant base, String name, int maxLineLength)`
"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).

## Uses of Base64Variant in com.fasterxml.jackson.core.base

Methods in com.fasterxml.jackson.core.base with parameters of type Base64Variant
Modifier and Type
Method
Description
`protected void`
ParserMinimalBase.`_decodeBase64(String str, ByteArrayBuilder builder, Base64Variant b64variant)`
Helper method that can be used for base64 decoding in cases where encoded content has already been read as a String.
`protected final int`
ParserBase.`_decodeBase64Escape(Base64Variant b64variant, char ch, int index)`
`protected final int`
ParserBase.`_decodeBase64Escape(Base64Variant b64variant, int ch, int index)`
`protected void`
ParserBase.`_handleBase64MissingPadding(Base64Variant b64variant)`
`byte[]`
ParserBase.`getBinaryValue(Base64Variant variant)`
`abstract byte[]`
ParserMinimalBase.`getBinaryValue(Base64Variant b64variant)`
`protected IllegalArgumentException`
ParserBase.`reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex)`
`protected IllegalArgumentException`
ParserBase.`reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex, String msg)`
`int`
GeneratorBase.`writeBinary(Base64Variant b64variant, InputStream data, int dataLength)`

## Uses of Base64Variant in com.fasterxml.jackson.core.filter

Methods in com.fasterxml.jackson.core.filter with parameters of type Base64Variant
Modifier and Type
Method
Description
`byte[]`
FilteringParserDelegate.`getBinaryValue(Base64Variant b64variant)`
`int`
FilteringParserDelegate.`readBinaryValue(Base64Variant b64variant, OutputStream out)`
`void`
FilteringGeneratorDelegate.`writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)`
`int`
FilteringGeneratorDelegate.`writeBinary(Base64Variant b64variant, InputStream data, int dataLength)`

## Uses of Base64Variant in com.fasterxml.jackson.core.json

Methods in com.fasterxml.jackson.core.json with parameters of type Base64Variant
Modifier and Type
Method
Description
`protected byte[]`
ReaderBasedJsonParser.`_decodeBase64(Base64Variant b64variant)`
Efficient handling for incremental parsing of base64-encoded textual content.
`protected final byte[]`
UTF8DataInputJsonParser.`_decodeBase64(Base64Variant b64variant)`
Efficient handling for incremental parsing of base64-encoded textual content.
`protected final byte[]`
UTF8StreamJsonParser.`_decodeBase64(Base64Variant b64variant)`
Efficient handling for incremental parsing of base64-encoded textual content.
`protected int`
ReaderBasedJsonParser.`_readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer)`
`protected int`
UTF8DataInputJsonParser.`_readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer)`
`protected int`
UTF8StreamJsonParser.`_readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer)`
`protected final void`
UTF8JsonGenerator.`_writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, int inputEnd)`
`protected final int`
UTF8JsonGenerator.`_writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer)`
`protected final int`
UTF8JsonGenerator.`_writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer, int bytesLeft)`
`protected final void`
WriterBasedJsonGenerator.`_writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, int inputEnd)`
`protected final int`
WriterBasedJsonGenerator.`_writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer)`
`protected final int`
WriterBasedJsonGenerator.`_writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer, int bytesLeft)`
`byte[]`
ReaderBasedJsonParser.`getBinaryValue(Base64Variant b64variant)`
`byte[]`
UTF8DataInputJsonParser.`getBinaryValue(Base64Variant b64variant)`
`byte[]`
UTF8StreamJsonParser.`getBinaryValue(Base64Variant b64variant)`
`int`
ReaderBasedJsonParser.`readBinaryValue(Base64Variant b64variant, OutputStream out)`
`int`
UTF8DataInputJsonParser.`readBinaryValue(Base64Variant b64variant, OutputStream out)`
`int`
UTF8StreamJsonParser.`readBinaryValue(Base64Variant b64variant, OutputStream out)`
`void`
UTF8JsonGenerator.`writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)`
`int`
UTF8JsonGenerator.`writeBinary(Base64Variant b64variant, InputStream data, int dataLength)`
`void`
WriterBasedJsonGenerator.`writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)`
`int`
WriterBasedJsonGenerator.`writeBinary(Base64Variant b64variant, InputStream data, int dataLength)`

## Uses of Base64Variant in com.fasterxml.jackson.core.json.async

Methods in com.fasterxml.jackson.core.json.async with parameters of type Base64Variant
Modifier and Type
Method
Description
`byte[]`
NonBlockingJsonParserBase.`getBinaryValue(Base64Variant b64variant)`
`int`
NonBlockingJsonParserBase.`readBinaryValue(Base64Variant b64variant, OutputStream out)`

## Uses of Base64Variant in com.fasterxml.jackson.core.util

Methods in com.fasterxml.jackson.core.util with parameters of type Base64Variant
Modifier and Type
Method
Description
`byte[]`
JsonParserDelegate.`getBinaryValue(Base64Variant b64variant)`
`int`
JsonParserDelegate.`readBinaryValue(Base64Variant b64variant, OutputStream out)`
`void`
JsonGeneratorDelegate.`writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)`
`int`
JsonGeneratorDelegate.`writeBinary(Base64Variant b64variant, InputStream data, int dataLength)`