Uses of Class
tools.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.
-
Uses of Base64Variant in tools.jackson.core
Fields in tools.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 tools.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 tools.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 JsonGeneratorJsonGenerator.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 tools.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 tools.jackson.core.base
Methods in tools.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 <T> TParserBase._handleBase64MissingPadding(Base64Variant b64variant) protected <T> TParserBase._reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex) protected <T> TParserBase._reportInvalidBase64Char(Base64Variant b64variant, int ch, int bindex, String msg) byte[]ParserBase.getBinaryValue(Base64Variant variant) intGeneratorBase.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) -
Uses of Base64Variant in tools.jackson.core.filter
Methods in tools.jackson.core.filter with parameters of type Base64VariantModifier and TypeMethodDescriptionFilteringGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intFilteringGeneratorDelegate.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) -
Uses of Base64Variant in tools.jackson.core.json
Methods in tools.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 final voidWriterBasedJsonGenerator._writeBinary(Base64Variant b64variant, byte[] input, int inputPtr, int inputEnd) protected final intWriterBasedJsonGenerator._writeBinary(Base64Variant b64variant, InputStream data, byte[] readBuffer) protected final 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) UTF8JsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intUTF8JsonGenerator.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intWriterBasedJsonGenerator.writeBinary(Base64Variant b64variant, InputStream data, int dataLength) -
Uses of Base64Variant in tools.jackson.core.json.async
Methods in tools.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 tools.jackson.core.util
Methods in tools.jackson.core.util with parameters of type Base64VariantModifier and TypeMethodDescriptionbyte[]JsonParserDelegate.getBinaryValue(Base64Variant b64variant) intJsonParserDelegate.readBinaryValue(Base64Variant b64variant, OutputStream out) JsonGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) intJsonGeneratorDelegate.writeBinary(Base64Variant b64variant, InputStream data, int dataLength)