Uses of Class
com.fasterxml.jackson.core.Base64Variant
Packages that use Base64Variant
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances.Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Non-blocking ("async") JSON parser implementation.
Utility classes used by Jackson Core functionality.
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind).Contains concrete
JsonNode implementations
Jackson uses for the Tree model.Utility classes for Mapper package.
-
Uses of Base64Variant in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core declared as Base64VariantModifier and TypeFieldDescriptionstatic final Base64VariantBase64Variants.MIMEThis variant is what most people would think of "the standard" Base64 encoding.static final Base64VariantBase64Variants.MIME_NO_LINEFEEDSSlightly non-standard modification ofBase64Variants.MIMEwhich does not use linefeeds (max line length set to infinite).static final Base64VariantBase64Variants.MODIFIED_FOR_URLThis non-standard variant is usually used when encoded data needs to be passed via URLs (such as part of GET request).static final Base64VariantBase64Variants.PEMThis variant is the one that predatesBase64Variants.MIME: it is otherwise identical, except that it mandates shorter line length.Methods in com.fasterxml.jackson.core that return Base64VariantModifier and TypeMethodDescriptionstatic Base64VariantBase64Variants.getDefaultVariant()Method used to get the default variant --Base64Variants.MIME_NO_LINEFEEDS-- for cases where caller does not explicitly specify the variant.static Base64VariantLookup method for finding one of standard variants by name.Base64Variant.withPaddingAllowed()Base64Variant.withPaddingForbidden()Base64Variant.withPaddingRequired()Base64Variant.withReadPadding(Base64Variant.PaddingReadBehaviour readPadding) Base64Variant.withWritePadding(boolean writePadding) Methods in com.fasterxml.jackson.core with parameters of type Base64VariantModifier and TypeMethodDescriptionabstract 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.intJsonParser.readBinaryValue(Base64Variant bv, OutputStream out) Similar toJsonParser.readBinaryValue(OutputStream)but allows explicitly specifying base64 variant to use.abstract voidJsonGenerator.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 intJsonGenerator.writeBinary(Base64Variant bv, InputStream data, int dataLength) Method similar toJsonGenerator.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 Base64VariantModifierConstructorDescriptionBase64Variant(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) differBase64Variant(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 Base64VariantModifier and TypeMethodDescriptionprotected voidParserMinimalBase._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 intParserBase._decodeBase64Escape(Base64Variant b64variant, char ch, int index) protected final intParserBase._decodeBase64Escape(Base64Variant b64variant, int ch, int index) protected voidParserBase._handleBase64MissingPadding(Base64Variant b64variant) byte[]ParserBase.getBinaryValue(Base64Variant variant) abstract byte[]ParserMinimalBase.getBinaryValue(Base64Variant b64variant) protected IllegalArgumentExceptionParserBase.reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex) protected IllegalArgumentExceptionParserBase.reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex, String msg) intGeneratorBase.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 Base64VariantModifier and TypeMethodDescriptionbyte[]FilteringParserDelegate.getBinaryValue(Base64Variant b64variant) intFilteringParserDelegate.readBinaryValue(Base64Variant b64variant, OutputStream out) voidFilteringGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intFilteringGeneratorDelegate.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 Base64VariantModifier and TypeMethodDescriptionprotected 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 intReaderBasedJsonParser._readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer) protected intUTF8DataInputJsonParser._readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer) protected intUTF8StreamJsonParser._readBinary(Base64Variant b64variant, OutputStream out, byte[] buffer) protected final voidUTF8JsonGenerator._writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, int inputEnd) protected final intUTF8JsonGenerator._writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer) protected final intUTF8JsonGenerator._writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer, int bytesLeft) protected voidWriterBasedJsonGenerator._writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, int inputEnd) protected intWriterBasedJsonGenerator._writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer) protected intWriterBasedJsonGenerator._writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer, int bytesLeft) byte[]ReaderBasedJsonParser.getBinaryValue(Base64Variant b64variant) byte[]UTF8DataInputJsonParser.getBinaryValue(Base64Variant b64variant) byte[]UTF8StreamJsonParser.getBinaryValue(Base64Variant b64variant) intReaderBasedJsonParser.readBinaryValue(Base64Variant b64variant, OutputStream out) intUTF8DataInputJsonParser.readBinaryValue(Base64Variant b64variant, OutputStream out) intUTF8StreamJsonParser.readBinaryValue(Base64Variant b64variant, OutputStream out) voidUTF8JsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intUTF8JsonGenerator.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) voidWriterBasedJsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intWriterBasedJsonGenerator.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 Base64VariantModifier and TypeMethodDescriptionbyte[]NonBlockingJsonParserBase.getBinaryValue(Base64Variant b64variant) intNonBlockingJsonParserBase.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 Base64VariantModifier and TypeMethodDescriptionbyte[]JsonParserDelegate.getBinaryValue(Base64Variant b64variant) intJsonParserDelegate.readBinaryValue(Base64Variant b64variant, OutputStream out) voidJsonGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intJsonGeneratorDelegate.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) -
Uses of Base64Variant in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return Base64VariantModifier and TypeMethodDescriptionfinal Base64VariantDeserializationContext.getBase64Variant()Convenience method for accessing the default Base64 encoding used for decoding base64 encoded binary content.Methods in com.fasterxml.jackson.databind with parameters of type Base64VariantModifier and TypeMethodDescriptionObjectMapper.reader(Base64Variant defaultBase64) Factory method for constructingObjectReaderthat will use specified Base64 encoding variant for Base64-encoded binary data.ObjectMapper.setBase64Variant(Base64Variant v) Method that will configure defaultBase64Variantthatbyte[]serializers and deserializers will use.ObjectReader.with(Base64Variant defaultBase64) ObjectWriter.with(Base64Variant b64variant) Method that will construct a new instance that uses specified defaultBase64Variantfor base64 encodingObjectMapper.writer(Base64Variant defaultBase64) Factory method for constructingObjectWriterthat will use specified Base64 encoding variant for Base64-encoded binary data. -
Uses of Base64Variant in com.fasterxml.jackson.databind.cfg
Fields in com.fasterxml.jackson.databind.cfg declared as Base64VariantModifier and TypeFieldDescriptionprotected final Base64VariantBaseSettings._defaultBase64Explicitly defaultBase64Variantto use for handling binary data (byte[]), used with data formats that use base64 encoding (like JSON, CSV).Methods in com.fasterxml.jackson.databind.cfg that return Base64VariantModifier and TypeMethodDescriptionBaseSettings.getBase64Variant()MapperConfig.getBase64Variant()Method called during deserialization if Base64 encoded content needs to be decoded.Methods in com.fasterxml.jackson.databind.cfg with parameters of type Base64VariantModifier and TypeMethodDescriptionMapperBuilder.defaultBase64Variant(Base64Variant v) Method that will configure defaultBase64Variantthatbyte[]serializers and deserializers will use.BaseSettings.with(Base64Variant base64) final TMapperConfigBase.with(Base64Variant base64) Method for constructing and returning a new instance with different defaultBase64Variantto use with base64-encoded binary values.Constructors in com.fasterxml.jackson.databind.cfg with parameters of type Base64VariantModifierConstructorDescriptionBaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv) Deprecated.BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming) Deprecated.BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming, CacheProvider cacheProvider) -
Uses of Base64Variant in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node with parameters of type Base64VariantModifier and TypeMethodDescriptionbyte[]TextNode.getBinaryValue(Base64Variant b64variant) Method for accessing textual contents assuming they were base64 encoded; if so, they are decoded and resulting binary data is returned.byte[]TreeTraversingParser.getBinaryValue(Base64Variant b64variant) intTreeTraversingParser.readBinaryValue(Base64Variant b64variant, OutputStream out) -
Uses of Base64Variant in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util with parameters of type Base64VariantModifier and TypeMethodDescriptionbyte[]TokenBuffer.Parser.getBinaryValue(Base64Variant b64variant) intTokenBuffer.Parser.readBinaryValue(Base64Variant b64variant, OutputStream out) voidTokenBuffer.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intTokenBuffer.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) Although we could support this method, it does not necessarily make sense: we cannot make good use of streaming because buffer must hold all the data.
CacheProviderinstead.