private void readObject(ObjectInputStream in) throws IOException
InvalidObjectException - (always)IOExceptionprivate Object writeReplace()
3.
The following bits 4-7 contain the variant of history. The variant is usually
zero, but for PROLEPTIC_GREGORIAN 1, for PROLEPTIC_JULIAN 2, for PROLEPTIC_BYZANTINE 3,
for SWEDEN 4 and for the first gregorian reform 7. If the variant is zero then the
cutover date in question will be written as long (modified julian date) into the
stream. Then the sequence of eventually set ancient julian leap years will be
written as int-array (length followed by list of extended years). Then the specific
new-year-strategy will be written as count of list of rule-until-pairs followed by
the list entries. Finally the era preference will be written such that non-default
preferences require the byte 127 and else any other number. If non-default then
the preferred era and the start date and the end date will be written.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Implementation method of interface Externalizable.
IOException - in any case of IO-failuresClassNotFoundException - if class loading failspublic void writeExternal(ObjectOutput out) throws IOException
Implementation method of interface Externalizable.
The first byte contains within the 4 most-significant bits the type of the object to be serialized. Then the data bytes follow in a bit-compressed representation.
writeReplace()-method of object
to be serializedIOException - in any case of IO-failuresCopyright © 2014–2017. All rights reserved.