Ser

The shared serialization delegate for this package.

@implNote This class wraps the object being serialized, and takes a byte representing the type of the class to be serialized. This byte can also be used for versioning the serialization format. In this case another byte flag would be used _in order to specify an alternative version of the type format. For example {@code LOCAL_DATE_TYPE_VERSION_2 = 21}. !(p) In order to serialize the object it writes its byte and then calls back to the appropriate class where the serialization is performed. In order to deserialize the object it read _in the type byte, switching _in order to select which class to call back into. !(p) The serialization format is determined on a per class basis. In the case of field based classes each of the fields is written _out with an appropriate size format _in descending order of the field's size. For example _in the case of {@link LocalDate} year is written before month. Composite classes, such as {@link LocalDateTime} are serialized as one object. !(p) 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

writeExternal
void writeExternal(ObjectOutput _out)

Implements the {@code Externalizable} interface to write the object. @serialData

Static functions

read
Object read(ObjectInput _in)
Undocumented in source. Be warned that the author may not have intended to support it.
writeInternal
void writeInternal(byte type, Object object, ObjectOutput _out)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DURATION_TYPE
enum byte DURATION_TYPE;
Undocumented in source.
INSTANT_TYPE
enum byte INSTANT_TYPE;
Undocumented in source.
LOCAL_DATE_TIME_TYPE
enum byte LOCAL_DATE_TIME_TYPE;
Undocumented in source.
LOCAL_DATE_TYPE
enum byte LOCAL_DATE_TYPE;
Undocumented in source.
LOCAL_TIME_TYPE
enum byte LOCAL_TIME_TYPE;
Undocumented in source.
MONTH_DAY_TYPE
enum byte MONTH_DAY_TYPE;
Undocumented in source.
OFFSET_DATE_TIME_TYPE
enum byte OFFSET_DATE_TIME_TYPE;
Undocumented in source.
OFFSET_TIME_TYPE
enum byte OFFSET_TIME_TYPE;
Undocumented in source.
PERIOD_TYPE
enum byte PERIOD_TYPE;
Undocumented in source.
YEAR_MONTH_TYPE
enum byte YEAR_MONTH_TYPE;
Undocumented in source.
YEAR_TYPE
enum byte YEAR_TYPE;
Undocumented in source.
ZONE_DATE_TIME_TYPE
enum byte ZONE_DATE_TIME_TYPE;
Undocumented in source.
ZONE_OFFSET_TYPE
enum byte ZONE_OFFSET_TYPE;
Undocumented in source.
ZONE_REGION_TYPE
enum byte ZONE_REGION_TYPE;
Undocumented in source.

Meta