Ser

The shared serialization delegate for this package.

@implNote This class is mutable and should be created once per serialization.

@serial include @since 1.8

Constructors

this
this()

Constructor for deserialization.

this
this(byte type, Object object)

Creates an instance for serialization.

Members

Functions

readExternal
void readExternal(ObjectInput _in)

Implements the {@code Externalizable} interface to read the object. @serialData The streamed type and parameters defined by the type's {@code writeReplace} method are read and passed to the corresponding static factory for the type to create a new instance. That instance is returned as the de-serialized {@code Ser} object.

writeExternal
void writeExternal(ObjectOutput _out)

Implements the {@code Externalizable} interface to write the object. @serialData Each serializable class is mapped to a type that is the first byte _in the stream. Refer to each class {@code writeReplace} serialized form for the value of the type and sequence of values for the type.

Static functions

read
Object read(DataInput _in)
Undocumented in source. Be warned that the author may not have intended to support it.
readEpochSec
long readEpochSec(DataInput _in)

Reads the state from the stream.

readOffset
ZoneOffset readOffset(DataInput _in)

Reads the state from the stream.

write
void write(Object object, DataOutput _out)
Undocumented in source. Be warned that the author may not have intended to support it.
writeEpochSec
void writeEpochSec(long epochSec, DataOutput _out)

Writes the state to the stream.

writeOffset
void writeOffset(ZoneOffset offset, DataOutput _out)

Writes the state to the stream.

Variables

ZOT
enum byte ZOT;

Type for ZoneOffsetTransition.

ZOTRULE
enum byte ZOTRULE;

Type for ZoneOffsetTransition.

ZRULES
enum byte ZRULES;

Type for ZoneRules.

Meta