Top Description Inners Methods
tools.jackson.core

public Interface ObjectReadContext

Known Direct Implementers
tools.jackson.core.ObjectReadContext.Base
Imports
java.io.InputStream, .Reader, tools.jackson.core.tree.ArrayTreeNode, .ObjectTreeNode, tools.jackson.core.type.ResolvedType, .TypeReference

Defines API for accessing configuration and state exposed by higher level databind functionality during read (token stream to Object deserialization) process. Access is mostly needed during construction of JsonParser instances by TokenStreamFactory.
Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ObjectReadContext.Base

Default no-op implementation.

Method Summary

Modifier and TypeMethod and Description
public ArrayTreeNode

Returns:

Array node created
createArrayNode
()

Method for construct Array nodes for Tree Model instances.

public ObjectTreeNode

Returns:

Object node created
createObjectNode
()

Method for construct Object nodes for Tree Model instances.

public default JsonParser
public default JsonParser
public default JsonParser
public default JsonParser
createParser(byte[] content)

public default JsonParser
createParser(byte[] content, int offset, int length)

public static ObjectReadContext
public int
getFormatReadFeatures(int defaults)

public FormatSchema
public int
getStreamReadFeatures(int defaults)

public <T extends TreeNode> T
public <T> T
readValue(JsonParser p, Class<T> valueType)

public <T> T
readValue(JsonParser p, TypeReference<T> valueTypeRef)

public <T> T
public StreamReadConstraints
public TokenStreamFactory
public default JsonParser

Returns:

Parser that iterates over contents of given node
treeAsTokens
(TreeNode
Node to traverse over
n
)

Convenience method for traversing over given TreeNode by exposing contents as a JsonParser.

Method Detail

createArrayNodeback to summary
public ArrayTreeNode createArrayNode()

Method for construct Array nodes for Tree Model instances.

Returns:ArrayTreeNode

Array node created

createObjectNodeback to summary
public ObjectTreeNode createObjectNode()

Method for construct Object nodes for Tree Model instances.

Returns:ObjectTreeNode

Object node created

createParserback to summary
public default JsonParser createParser(InputStream in) throws JacksonException
createParserback to summary
public default JsonParser createParser(Reader r) throws JacksonException
createParserback to summary
public default JsonParser createParser(String content) throws JacksonException
createParserback to summary
public default JsonParser createParser(byte[] content) throws JacksonException
createParserback to summary
public default JsonParser createParser(byte[] content, int offset, int length) throws JacksonException
emptyback to summary
public static ObjectReadContext empty()
getFormatReadFeaturesback to summary
public int getFormatReadFeatures(int defaults)
getSchemaback to summary
public FormatSchema getSchema()
getStreamReadFeaturesback to summary
public int getStreamReadFeatures(int defaults)
readTreeback to summary
public <T extends TreeNode> T readTree(JsonParser p) throws JacksonException
readValueback to summary
public <T> T readValue(JsonParser p, Class<T> valueType) throws JacksonException
readValueback to summary
public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef) throws JacksonException
readValueback to summary
public <T> T readValue(JsonParser p, ResolvedType type) throws JacksonException
streamReadConstraintsback to summary
public StreamReadConstraints streamReadConstraints()
tokenStreamFactoryback to summary
public TokenStreamFactory tokenStreamFactory()
treeAsTokensback to summary
public default JsonParser treeAsTokens(TreeNode n)

Convenience method for traversing over given TreeNode by exposing contents as a JsonParser.

Note

Returned parser has not been advanced to the first token; caller has to do this.

Parameters
n:TreeNode

Node to traverse over

Returns:JsonParser

Parser that iterates over contents of given node

tools.jackson.core back to summary

public Class ObjectReadContext.Base

extends Object
implements ObjectReadContext
Class Inheritance
All Implemented Interfaces
tools.jackson.core.ObjectReadContext

Default no-op implementation.

Field Summary

Modifier and TypeField and Description
protected static ObjectReadContext.Base

Constructor Summary

AccessConstructor and Description
public
Base()

Method Summary

Modifier and TypeMethod and Description
protected <T> T
public ArrayTreeNode
createArrayNode()

Implements tools.jackson.core.ObjectReadContext.createArrayNode.

Method for construct Array nodes for Tree Model instances.

public ObjectTreeNode
createObjectNode()

Implements tools.jackson.core.ObjectReadContext.createObjectNode.

Method for construct Object nodes for Tree Model instances.

public int
public FormatSchema
public int
public <T extends TreeNode> T
public <T> T
public <T> T
public <T> T
public StreamReadConstraints
public TokenStreamFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_CONTEXTback to summary
protected static ObjectReadContext.Base EMPTY_CONTEXT

Constructor Detail

Baseback to summary
public Base()

Method Detail

_reportUnsupportedOperationback to summary
protected <T> T _reportUnsupportedOperation()
createArrayNodeback to summary
public ArrayTreeNode createArrayNode()

Implements tools.jackson.core.ObjectReadContext.createArrayNode.

Doc from tools.jackson.core.ObjectReadContext.createArrayNode.

Method for construct Array nodes for Tree Model instances.

Annotations
@Override
createObjectNodeback to summary
public ObjectTreeNode createObjectNode()

Implements tools.jackson.core.ObjectReadContext.createObjectNode.

Doc from tools.jackson.core.ObjectReadContext.createObjectNode.

Method for construct Object nodes for Tree Model instances.

Annotations
@Override
getFormatReadFeaturesback to summary
public int getFormatReadFeatures(int defaults)

Implements tools.jackson.core.ObjectReadContext.getFormatReadFeatures.

Annotations
@Override
getSchemaback to summary
public FormatSchema getSchema()

Implements tools.jackson.core.ObjectReadContext.getSchema.

Annotations
@Override
getStreamReadFeaturesback to summary
public int getStreamReadFeatures(int defaults)

Implements tools.jackson.core.ObjectReadContext.getStreamReadFeatures.

Annotations
@Override
readTreeback to summary
public <T extends TreeNode> T readTree(JsonParser p)

Implements tools.jackson.core.ObjectReadContext.readTree.

Annotations
@Override
readValueback to summary
public <T> T readValue(JsonParser p, Class<T> valueType)

Implements tools.jackson.core.ObjectReadContext.readValue.

Annotations
@Override
readValueback to summary
public <T> T readValue(JsonParser p, TypeReference<T> valueTypeRef)

Implements tools.jackson.core.ObjectReadContext.readValue.

Annotations
@Override
readValueback to summary
public <T> T readValue(JsonParser p, ResolvedType type)

Implements tools.jackson.core.ObjectReadContext.readValue.

Annotations
@Override
streamReadConstraintsback to summary
public StreamReadConstraints streamReadConstraints()

Implements tools.jackson.core.ObjectReadContext.streamReadConstraints.

Annotations
@Override
tokenStreamFactoryback to summary
public TokenStreamFactory tokenStreamFactory()

Implements tools.jackson.core.ObjectReadContext.tokenStreamFactory.

Annotations
@Override