Package | Description |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
Modifier and Type | Field | 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 | 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.
|
Modifier and Type | Method | Description |
---|---|---|
abstract byte[] |
JsonParser.getBinaryValue(Base64Variant b64variant) |
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.
|
abstract void |
JsonGenerator.writeBinary(Base64Variant b64variant,
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).
|
Constructor | Description |
---|---|
Base64Variant(Base64Variant base,
java.lang.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,
java.lang.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 | Description |
---|---|---|
protected abstract byte[] |
JsonParserBase._decodeBase64(Base64Variant b64variant) |
|
protected byte[] |
ReaderBasedParser._decodeBase64(Base64Variant b64variant) |
|
protected byte[] |
Utf8StreamParser._decodeBase64(Base64Variant b64variant) |
|
protected int |
JsonParserBase._decodeBase64Escape(Base64Variant b64variant,
char ch,
int index) |
|
protected int |
JsonParserBase._decodeBase64Escape(Base64Variant b64variant,
int ch,
int index) |
|
protected void |
Utf8Generator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
|
protected void |
WriterBasedGenerator._writeBinary(Base64Variant b64variant,
byte[] input,
int inputPtr,
int inputEnd) |
|
abstract byte[] |
JsonParserMinimalBase.getBinaryValue(Base64Variant b64variant) |
|
byte[] |
ReaderBasedParser.getBinaryValue(Base64Variant b64variant) |
|
byte[] |
Utf8StreamParser.getBinaryValue(Base64Variant b64variant) |
|
protected java.lang.IllegalArgumentException |
JsonParserBase.reportInvalidBase64Char(Base64Variant b64variant,
int ch,
int bindex) |
|
protected java.lang.IllegalArgumentException |
JsonParserBase.reportInvalidBase64Char(Base64Variant b64variant,
int ch,
int bindex,
java.lang.String msg) |
|
void |
Utf8Generator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
|
void |
WriterBasedGenerator.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
Modifier and Type | Method | Description |
---|---|---|
Base64Variant |
DeserializationConfig.getBase64Variant() |
Method called during deserialization if Base64 encoded content
needs to be decoded.
|
Base64Variant |
DeserializationContext.getBase64Variant() |
Convenience method for accessing the default Base64 encoding
used for decoding base64 encoded binary content.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex) |
|
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
java.lang.String msg) |
|
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.
|
byte[] |
TreeTraversingParser.getBinaryValue(Base64Variant b64variant) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
TokenBuffer.Parser._decodeBase64(java.lang.String str,
ByteArrayBuilder builder,
Base64Variant b64variant) |
|
protected void |
TokenBuffer.Parser._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
java.lang.String msg) |
|
byte[] |
JsonParserDelegate.getBinaryValue(Base64Variant b64variant) |
|
byte[] |
TokenBuffer.Parser.getBinaryValue(Base64Variant b64variant) |
|
void |
JsonGeneratorDelegate.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |
|
void |
TokenBuffer.writeBinary(Base64Variant b64variant,
byte[] data,
int offset,
int len) |