public final class MessagePackReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
JsonReadContext
to support features needed by MessagePack format.| Modifier and Type | Field and Description |
|---|---|
protected MessagePackReadContext |
child |
protected java.lang.String |
currentName |
protected java.lang.Object |
currentValue |
protected com.fasterxml.jackson.core.json.DupDetector |
dups |
protected int |
expEntryCount
For fixed-size Arrays, Objects, this indicates expected number of entries.
|
protected MessagePackReadContext |
parent
Parent context for this context; null for root context.
|
| Constructor and Description |
|---|
MessagePackReadContext(MessagePackReadContext parent,
com.fasterxml.jackson.core.json.DupDetector dups,
int type,
int expEntryCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsBreakMarker() |
MessagePackReadContext |
createChildArrayContext(int expEntryCount) |
MessagePackReadContext |
createChildObjectContext(int expEntryCount) |
static MessagePackReadContext |
createRootContext(com.fasterxml.jackson.core.json.DupDetector dups) |
boolean |
expectMoreValues()
Method called to increment the current entry count (Object property, Array
element or Root value) for this context level
and then see if more entries are accepted.
|
java.lang.String |
getCurrentName() |
java.lang.Object |
getCurrentValue() |
int |
getExpectedLength() |
MessagePackReadContext |
getParent() |
int |
getRemainingExpectedLength() |
com.fasterxml.jackson.core.JsonLocation |
getStartLocation(java.lang.Object rawSrc)
Deprecated.
|
boolean |
hasExpectedLength() |
boolean |
isEmpty() |
protected void |
reset(int type,
int expEntryCount) |
void |
setCurrentName(java.lang.String name) |
void |
setCurrentValue(java.lang.Object v) |
com.fasterxml.jackson.core.JsonLocation |
startLocation(com.fasterxml.jackson.core.io.ContentReference srcRef) |
java.lang.String |
toString()
Overridden to provide developer readable "JsonPath" representation
of the context.
|
protected final MessagePackReadContext parent
protected final com.fasterxml.jackson.core.json.DupDetector dups
protected int expEntryCount
protected java.lang.String currentName
protected java.lang.Object currentValue
protected MessagePackReadContext child
public MessagePackReadContext(MessagePackReadContext parent, com.fasterxml.jackson.core.json.DupDetector dups, int type, int expEntryCount)
protected void reset(int type,
int expEntryCount)
public java.lang.Object getCurrentValue()
getCurrentValue in class com.fasterxml.jackson.core.JsonStreamContextpublic void setCurrentValue(java.lang.Object v)
setCurrentValue in class com.fasterxml.jackson.core.JsonStreamContextpublic static MessagePackReadContext createRootContext(com.fasterxml.jackson.core.json.DupDetector dups)
public MessagePackReadContext createChildArrayContext(int expEntryCount)
public MessagePackReadContext createChildObjectContext(int expEntryCount)
public java.lang.String getCurrentName()
getCurrentName in class com.fasterxml.jackson.core.JsonStreamContextpublic MessagePackReadContext getParent()
getParent in class com.fasterxml.jackson.core.JsonStreamContextpublic boolean hasExpectedLength()
public int getExpectedLength()
public boolean isEmpty()
public int getRemainingExpectedLength()
public boolean acceptsBreakMarker()
public boolean expectMoreValues()
Note that since the entry count is updated this is a state-changing method.
public com.fasterxml.jackson.core.JsonLocation startLocation(com.fasterxml.jackson.core.io.ContentReference srcRef)
startLocation in class com.fasterxml.jackson.core.JsonStreamContext@Deprecated public com.fasterxml.jackson.core.JsonLocation getStartLocation(java.lang.Object rawSrc)
getStartLocation in class com.fasterxml.jackson.core.JsonStreamContextpublic void setCurrentName(java.lang.String name)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic java.lang.String toString()
toString in class com.fasterxml.jackson.core.JsonStreamContext