equal
deleted
inserted
replaced
66 |
66 |
67 import java.io.DataInput; |
67 import java.io.DataInput; |
68 import java.io.DataOutput; |
68 import java.io.DataOutput; |
69 import java.io.IOException; |
69 import java.io.IOException; |
70 import java.io.InvalidObjectException; |
70 import java.io.InvalidObjectException; |
71 import java.io.ObjectStreamException; |
71 import java.io.InvalidObjectException; |
72 import java.io.Serializable; |
72 import java.io.Serializable; |
73 import java.time.chrono.Chronology; |
73 import java.time.chrono.Chronology; |
74 import java.time.chrono.IsoChronology; |
74 import java.time.chrono.IsoChronology; |
75 import java.time.format.DateTimeFormatter; |
75 import java.time.format.DateTimeFormatter; |
76 import java.time.format.DateTimeFormatterBuilder; |
76 import java.time.format.DateTimeFormatterBuilder; |
742 } |
742 } |
743 |
743 |
744 //----------------------------------------------------------------------- |
744 //----------------------------------------------------------------------- |
745 /** |
745 /** |
746 * Writes the object using a |
746 * Writes the object using a |
747 * <a href="../../../serialized-form.html#java.time.temporal.Ser">dedicated serialized form</a>. |
747 * <a href="../../serialized-form.html#java.time.Ser">dedicated serialized form</a>. |
|
748 * @serialData |
748 * <pre> |
749 * <pre> |
749 * out.writeByte(13); // identifies this as a MonthDay |
750 * out.writeByte(13); // identifies a MonthDay |
750 * out.writeByte(month); |
751 * out.writeByte(month); |
751 * out.writeByte(day); |
752 * out.writeByte(day); |
752 * </pre> |
753 * </pre> |
753 * |
754 * |
754 * @return the instance of {@code Ser}, not null |
755 * @return the instance of {@code Ser}, not null |
760 /** |
761 /** |
761 * Defend against malicious streams. |
762 * Defend against malicious streams. |
762 * @return never |
763 * @return never |
763 * @throws InvalidObjectException always |
764 * @throws InvalidObjectException always |
764 */ |
765 */ |
765 private Object readResolve() throws ObjectStreamException { |
766 private Object readResolve() throws InvalidObjectException { |
766 throw new InvalidObjectException("Deserialization via serialization delegate"); |
767 throw new InvalidObjectException("Deserialization via serialization delegate"); |
767 } |
768 } |
768 |
769 |
769 void writeExternal(DataOutput out) throws IOException { |
770 void writeExternal(DataOutput out) throws IOException { |
770 out.writeByte(month); |
771 out.writeByte(month); |