| 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 |
|---|---|
| public String | |
| public JsonToken | asToken()
Implements abstract com. Implements com. |
| public byte[] | binaryValue()
Overrides com. 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
the reference object with which to compare. o)Implements abstract com. |
| public JsonNodeType | getNodeType()
Implements abstract com. |
| public int | hashCode()
Implements abstract com. |
| public final void | serialize(JsonGenerator jg, SerializerProvider provider)
Implements abstract com. Implements com. |
| 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 com. | |
| BinaryNode | back to summary |
|---|---|
| public BinaryNode(byte[] data) | |
| BinaryNode | back to summary |
|---|---|
| public BinaryNode(byte[] data, int offset, int length) | |
| asText | back to summary |
|---|---|
| public String asText() Implements abstract com. Hmmh. This is not quite as efficient as using
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract com. Implements com. Doc from com. 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 com. 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 com. Doc from com. 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 com. Doc from com. Return the type of this node
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Doc from java. Returns a hash code value for the 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 jg, SerializerProvider provider) throws IOException Implements abstract com. Implements com. Doc from com. 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) | |