Top Description Fields Constructors Methods
com.fasterxml.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, com.fasterxml.jackson.core.util.ByteArrayBuilder

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

Field Summary

Modifier and TypeField and Description
public byte[]
protected static final int
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)

public static NodeSerialization
public void
readExternal(ObjectInput
the stream to read data from in order to restore the object
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
public void
writeExternal(ObjectOutput
the stream to write the object to
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
LONGEST_EAGER_ALLOCback to summary
protected static final int LONGEST_EAGER_ALLOC
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
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.

Parameters
in:ObjectInput

the stream to read data from in order to restore the object

Annotations
@Override
Exceptions
IOException:
if I/O errors occur
readResolveback to summary
protected Object readResolve()
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.

Parameters
out:ObjectOutput

the stream to write the object to

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