public final class CBORReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
JsonReadContext
to support features needed by CBOR format.| Modifier and Type | Field and Description |
|---|---|
protected CBORReadContext |
_child |
protected String |
_currentName |
protected 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 CBORReadContext |
_parent
Parent context for this context; null for root context.
|
| Constructor and Description |
|---|
CBORReadContext(CBORReadContext parent,
com.fasterxml.jackson.core.json.DupDetector dups,
int type,
int expEntryCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsBreakMarker() |
CBORReadContext |
createChildArrayContext(int expEntryCount) |
CBORReadContext |
createChildObjectContext(int expEntryCount) |
static CBORReadContext |
createRootContext(com.fasterxml.jackson.core.json.DupDetector dups) |
boolean |
expectMoreValues()
Method called to see if a new value is expected for this
Array or Object.
|
String |
getCurrentName() |
Object |
getCurrentValue() |
int |
getExpectedLength() |
CBORReadContext |
getParent() |
com.fasterxml.jackson.core.JsonLocation |
getStartLocation(Object srcRef) |
boolean |
hasExpectedLength() |
protected void |
reset(int type,
int expEntryCount) |
void |
setCurrentName(String name) |
void |
setCurrentValue(Object v) |
String |
toString()
Overridden to provide developer readable "JsonPath" representation
of the context.
|
protected final CBORReadContext _parent
protected final com.fasterxml.jackson.core.json.DupDetector _dups
protected int _expEntryCount
protected String _currentName
protected Object _currentValue
protected CBORReadContext _child
public CBORReadContext(CBORReadContext parent, com.fasterxml.jackson.core.json.DupDetector dups, int type, int expEntryCount)
protected void reset(int type,
int expEntryCount)
public Object getCurrentValue()
getCurrentValue in class com.fasterxml.jackson.core.JsonStreamContextpublic void setCurrentValue(Object v)
setCurrentValue in class com.fasterxml.jackson.core.JsonStreamContextpublic static CBORReadContext createRootContext(com.fasterxml.jackson.core.json.DupDetector dups)
public CBORReadContext createChildArrayContext(int expEntryCount)
public CBORReadContext createChildObjectContext(int expEntryCount)
public String getCurrentName()
getCurrentName in class com.fasterxml.jackson.core.JsonStreamContextpublic CBORReadContext getParent()
getParent in class com.fasterxml.jackson.core.JsonStreamContextpublic boolean hasExpectedLength()
public int getExpectedLength()
public boolean acceptsBreakMarker()
public boolean expectMoreValues()
public com.fasterxml.jackson.core.JsonLocation getStartLocation(Object srcRef)
getStartLocation in class com.fasterxml.jackson.core.JsonStreamContextpublic void setCurrentName(String name) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic String toString()
toString in class com.fasterxml.jackson.core.JsonStreamContextCopyright © 2019 FasterXML. All rights reserved.