| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| pack-priv static final BinaryNode | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected String | _valueDesc()
Implements abstract tools. Method for implementation classes to return a short description of contained value, to be used in error messages. |
| public JsonToken | asToken()
Implements abstract tools. Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public byte[] | binaryValue()
Overrides tools. Note caller is not to modify returned array in any way, since it is not a copy but reference to the underlying byte array. |
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public JsonNodeType | getNodeType()
Implements abstract tools. Return the type of this node |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public final void | serialize(JsonGenerator g, SerializationContext provider)
Implements abstract tools. Implements tools. Method called to serialize node instances using given generator. |
| public static BinaryNode | |
| public static BinaryNode |
| _data | back to summary |
|---|---|
| protected final byte[] _data | |
| EMPTY_BINARY_NODE | back to summary |
|---|---|
| pack-priv static final BinaryNode EMPTY_BINARY_NODE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| BinaryNode | back to summary |
|---|---|
| public BinaryNode(byte[] data) | |
| BinaryNode | back to summary |
|---|---|
| public BinaryNode(byte[] data, int offset, int length) | |
| _asString | back to summary |
|---|---|
| protected String _asString() Overrides tools. Hmmh. This is not quite as efficient as using
| |
| _valueDesc | back to summary |
|---|---|
| protected String _valueDesc() Implements abstract tools. Doc from tools. Method for implementation classes to return a short description of contained value, to be used in error messages.
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract tools. Implements tools. Doc from tools. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| binaryValue | back to summary |
|---|---|
| public byte[] binaryValue() Overrides tools. Note caller is not to modify returned array in any way, since it is not a copy but reference to the underlying byte array.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from tools. Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. Note marked as abstract to ensure all implementation
classes define it properly and not rely on definition
from
| |
| getNodeType | back to summary |
|---|---|
| public JsonNodeType getNodeType() Implements abstract tools. Doc from tools. Return the type of this node
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Implements tools. Doc from tools. Method called to serialize node instances using given generator.
| |
| valueOf | back to summary |
|---|---|
| public static BinaryNode valueOf(byte[] data) | |
| valueOf | back to summary |
|---|---|
| public static BinaryNode valueOf(byte[] data, int offset, int length) | |