com.fasterxml.jackson.core.json.JsonReadContext
to support features needed to decode nested Protobuf messages.
| Modifier and Type | Field and Description |
|---|---|
| protected ProtobufReadContext | |
| protected String | |
| protected Object | |
| protected int | _endOffset
Offset within input buffer where the message represented by this context (if message context) ends. |
| protected ProtobufField | _field
For array contexts: field that defines type of array values. |
| protected ProtobufMessage | _messageType
Type of current context. |
| protected final ProtobufReadContext | _parent
Parent context for this context; null for root context. |
| Access | Constructor and Description |
|---|---|
| public | ProtobufReadContext(ProtobufReadContext parent, ProtobufMessage messageType, int type, int endOffset)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public int | adjustEnd(int bytesConsumed)
Method called when loading more input, or moving existing data; this requires adjusting relative end offset as well, except for root context. |
| public ProtobufReadContext | |
| public ProtobufReadContext | |
| public ProtobufReadContext | |
| public static ProtobufReadContext | |
| public String | getCurrentName()
Implements abstract com. Method for accessing name associated with the current location. |
| public Object | getCurrentValue()
Overrides com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. |
| public int | |
| public ProtobufField | |
| public ProtobufMessage | |
| public ProtobufReadContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| protected void | |
| public void | |
| public void | setCurrentValue(Object
Current value to assign to this context v)Overrides com. Method to call to pass value to be returned via |
| public void | |
| public JsonLocation | Returns: Location pointing to the point where the context start marker was found
|
| public String | toString()
Overrides com. Overridden to provide developer readable "JsonPath" representation of the context. |
| _child | back to summary |
|---|---|
| protected ProtobufReadContext _child | |
| _currentName | back to summary |
|---|---|
| protected String _currentName | |
| _currentValue | back to summary |
|---|---|
protected Object _currentValue
| |
| _endOffset | back to summary |
|---|---|
| protected int _endOffset Offset within input buffer where the message represented by this context (if message context) ends. | |
| _field | back to summary |
|---|---|
| protected ProtobufField _field For array contexts: field that defines type of array values. | |
| _messageType | back to summary |
|---|---|
| protected ProtobufMessage _messageType Type of current context. | |
| _parent | back to summary |
|---|---|
| protected final ProtobufReadContext _parent Parent context for this context; null for root context. | |
| ProtobufReadContext | back to summary |
|---|---|
| public ProtobufReadContext(ProtobufReadContext parent, ProtobufMessage messageType, int type, int endOffset) | |
| _adjustEnd | back to summary |
|---|---|
| private void _adjustEnd(int bytesConsumed) | |
| adjustEnd | back to summary |
|---|---|
| public int adjustEnd(int bytesConsumed) Method called when loading more input, or moving existing data; this requires adjusting relative end offset as well, except for root context. | |
| createChildArrayContext | back to summary |
|---|---|
| public ProtobufReadContext createChildArrayContext(ProtobufField f) | |
| createChildArrayContext | back to summary |
|---|---|
| public ProtobufReadContext createChildArrayContext(ProtobufField f, int endOffset) | |
| createChildObjectContext | back to summary |
|---|---|
| public ProtobufReadContext createChildObjectContext(ProtobufMessage messageType, ProtobufField f, int endOffset) | |
| createRootContext | back to summary |
|---|---|
| public static ProtobufReadContext createRootContext() | |
| getCurrentName | back to summary |
|---|---|
| public String getCurrentName() Implements abstract com. Doc from com. Method for accessing name associated with the current location.
Non-null for | |
| getCurrentValue | back to summary |
|---|---|
| public Object getCurrentValue() Overrides com. Doc from com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding. | |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() | |
| getField | back to summary |
|---|---|
| public ProtobufField getField() | |
| getMessageType | back to summary |
|---|---|
| public ProtobufMessage getMessageType() | |
| getParent | back to summary |
|---|---|
| public ProtobufReadContext getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| reset | back to summary |
|---|---|
| protected void reset(ProtobufMessage messageType, int type, int endOffset) | |
| setCurrentName | back to summary |
|---|---|
| public void setCurrentName(String name) | |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| setMessageType | back to summary |
|---|---|
| public void setMessageType(ProtobufMessage mt) | |
| startLocation | back to summary |
|---|---|
public JsonLocation startLocation(ContentReference srcRef, long byteOffset)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Overridden to provide developer readable "JsonPath" representation of the context.
| |