Top Description Fields Constructors Methods
tools.jackson.databind.node

pack-priv Class NodeSerialization

extends Object
implements Serializable, Externalizable
Class Inheritance
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable
Imports
java.io.IOException, .ObjectInput, .ObjectOutput, tools.jackson.core.JacksonException, tools.jackson.core.util.ByteArrayBuilder, tools.jackson.databind.JsonNode, .ObjectReader, tools.jackson.databind.json.JsonMapper

Helper value class only used during JDK serialization: contains JSON as `byte[]`

Field Summary

Modifier and TypeField and Description
public byte[]
private static final JsonMapper
protected static final int
private static final ObjectReader
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private byte[]
_read(ObjectInput in, int expLen)

private static JsonNode
bytesToNode(byte[] json)

public static NodeSerialization
public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

protected Object
private static byte[]
public void
writeExternal(ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jsonback to summary
public byte[] json
JSON_MAPPERback to summary
private static final JsonMapper JSON_MAPPER
LONGEST_EAGER_ALLOCback to summary
protected static final int LONGEST_EAGER_ALLOC
NODE_READERback to summary
private static final ObjectReader NODE_READER
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

NodeSerializationback to summary
public NodeSerialization()
NodeSerializationback to summary
public NodeSerialization(byte[] b)

Method Detail

_readback to summary
private byte[] _read(ObjectInput in, int expLen) throws IOException
bytesToNodeback to summary
private static JsonNode bytesToNode(byte[] json) throws JacksonException
fromback to summary
public static NodeSerialization from(Object o)
readExternalback to summary
public void readExternal(ObjectInput in) throws IOException

Implements java.io.Externalizable.readExternal.

Doc from java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Annotations
@Override
Exceptions
IOException:
if I/O errors occur
readResolveback to summary
protected Object readResolve()
valueToBytesback to summary
private static byte[] valueToBytes(Object value) throws JacksonException
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Doc from java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Annotations
@Override
Exceptions
IOException:
Includes any I/O exceptions that may occur