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.util |
Utility classes used by Jackson Core functionality.
|
com.fasterxml.jackson.databind |
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. |
com.fasterxml.jackson.databind.cfg |
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 ). |
com.fasterxml.jackson.databind.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
Modifier and Type | Field and Description |
---|---|
static Base64Variant |
Base64Variants.MIME
This variant is what most people would think of "the standard"
Base64 encoding.
|
static Base64Variant |
Base64Variants.MIME_NO_LINEFEEDS
Slightly non-standard modification of
Base64Variants.MIME which does not
use linefeeds (max line length set to infinite). |
static 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 Base64Variant |
Base64Variants.PEM
This variant is the one that predates
Base64Variants.MIME : it is otherwise
identical, except that it mandates shorter line length. |
Modifier and Type | Method and Description |
---|---|
static Base64Variant |
Base64Variants.getDefaultVariant()
Method used to get the default variant ("MIME_NO_LINEFEEDS") for cases
where caller does not explicitly specify the variant.
|
static Base64Variant |
Base64Variants.valueOf(String name) |
Modifier and Type | Method and 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. |
Constructor and Description |
---|
Base64Variant(Base64Variant base,
String name,
boolean usesPadding,
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).
|
Modifier and Type | Method and 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 int |
ParserBase._decodeBase64Escape(Base64Variant b64variant,
char ch,
int index) |
protected int |
ParserBase._decodeBase64Escape(Base64Variant b64variant,
int ch,
int index) |
abstract byte[] |
ParserMinimalBase.getBinaryValue(Base64Variant b64variant) |
byte[] |
ParserBase.getBinaryValue(Base64Variant variant) |
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) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
UTF8StreamJsonParser._decodeBase64(Base64Variant b64variant)
Efficient handling for incremental parsing of base64-encoded
textual content.
|
protected byte[] |
UTF8DataInputJsonParser._decodeBase64(Base64Variant b64variant)
Efficient handling for incremental parsing of base64-encoded
textual content.
|
protected byte[] |
ReaderBasedJsonParser._decodeBase64(Base64Variant b64variant)
Efficient handling for incremental parsing of base64-encoded
textual content.
|
protected int |
UTF8StreamJsonParser._readBinary(Base64Variant b64variant,
OutputStream out,
byte[] buffer) |
protected int |
UTF8DataInputJsonParser._readBinary(Base64Variant b64variant,
OutputStream out,
byte[] buffer) |
protected int |
ReaderBasedJsonParser._readBinary(Base64Variant b64variant,
OutputStream out,
byte[] buffer) |
protected void |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
protected void |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
protected int |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
InputStream data,
byte[] readBuffer) |
protected int |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
InputStream data,
byte[] readBuffer) |
protected int |
WriterBasedJsonGenerator._writeBinary(Base64Variant b64variant,
InputStream data,
byte[] readBuffer,
int bytesLeft) |
protected int |
UTF8JsonGenerator._writeBinary(Base64Variant b64variant,
InputStream data,
byte[] readBuffer,
int bytesLeft) |
byte[] |
UTF8StreamJsonParser.getBinaryValue(Base64Variant b64variant) |
byte[] |
UTF8DataInputJsonParser.getBinaryValue(Base64Variant b64variant) |
byte[] |
ReaderBasedJsonParser.getBinaryValue(Base64Variant b64variant) |
int |
UTF8StreamJsonParser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
int |
UTF8DataInputJsonParser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
int |
ReaderBasedJsonParser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
void |
WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
void |
UTF8JsonGenerator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
int |
WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant,
InputStream data,
int dataLength) |
int |
UTF8JsonGenerator.writeBinary(Base64Variant b64variant,
InputStream data,
int dataLength) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
Base64Variant |
DeserializationContext.getBase64Variant()
Convenience method for accessing the default Base64 encoding
used for decoding base64 encoded binary content.
|
Modifier and Type | Method and Description |
---|---|
ObjectReader |
ObjectMapper.reader(Base64Variant defaultBase64)
Factory method for constructing
ObjectReader that will
use specified Base64 encoding variant for Base64-encoded binary data. |
ObjectMapper |
ObjectMapper.setBase64Variant(Base64Variant v)
Method that will configure default
Base64Variant that
byte[] serializers and deserializers will use. |
SerializationConfig |
SerializationConfig.with(Base64Variant base64) |
ObjectWriter |
ObjectWriter.with(Base64Variant b64variant)
Method that will construct a new instance that uses specified default
Base64Variant for base64 encoding |
ObjectReader |
ObjectReader.with(Base64Variant defaultBase64) |
DeserializationConfig |
DeserializationConfig.with(Base64Variant base64) |
ObjectWriter |
ObjectMapper.writer(Base64Variant defaultBase64)
Factory method for constructing
ObjectWriter that will
use specified Base64 encoding variant for Base64-encoded binary data. |
Modifier and Type | Field and Description |
---|---|
protected Base64Variant |
BaseSettings._defaultBase64
Explicitly default
Base64Variant to use for handling
binary data (byte[] ), used with data formats
that use base64 encoding (like JSON, CSV). |
Modifier and Type | Method and Description |
---|---|
Base64Variant |
MapperConfig.getBase64Variant()
Method called during deserialization if Base64 encoded content
needs to be decoded.
|
Base64Variant |
BaseSettings.getBase64Variant() |
Modifier and Type | Method and Description |
---|---|
abstract T |
MapperConfigBase.with(Base64Variant base64)
Method for constructing and returning a new instance with different
default
Base64Variant to use with base64-encoded binary values. |
BaseSettings |
BaseSettings.with(Base64Variant base64) |
Constructor and Description |
---|
BaseSettings(ClassIntrospector ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
PropertyNamingStrategy pns,
TypeFactory tf,
TypeResolverBuilder<?> typer,
DateFormat dateFormat,
HandlerInstantiator hi,
Locale locale,
TimeZone tz,
Base64Variant defaultBase64) |
Modifier and Type | Method and Description |
---|---|
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex) |
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg) |
byte[] |
TreeTraversingParser.getBinaryValue(Base64Variant b64variant) |
byte[] |
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.
|
int |
TreeTraversingParser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
byte[] |
TokenBuffer.Parser.getBinaryValue(Base64Variant b64variant) |
int |
TokenBuffer.Parser.readBinaryValue(Base64Variant b64variant,
OutputStream out) |
void |
TokenBuffer.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
int |
TokenBuffer.writeBinary(Base64Variant b64variant,
InputStream data,
int dataLength)
Although we could support this method, it does not necessarily make
sense: we can not make good use of streaming because buffer must
hold all the data.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.