private void readObject ( ObjectInputStream stream ) throws IOException , ClassNotFoundException { stream . defaultReadObject ( ) ; this . era = JapaneseEra . from ( isoDate ) ; int yearOffset = this . era . startDate ( ) . getYear ( ) - 1 ; this . yearOfEra = isoDate . getYear ( ) - yearOffset ; }
Reconstitutes this object from a stream .