private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
  try {
    init();
  }
 catch (  RuntimeException e) {
    if (e instanceof NullPointerException || e instanceof IllegalArgumentException) {
      InvalidObjectException ee=new InvalidObjectException(e.getMessage());
      ee.initCause(e);
      throw ee;
    }
    throw e;
  }
}

private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { s . defaultReadObject ( ) ; try { init ( ) ; } catch ( RuntimeException e ) { if ( e instanceof NullPointerException || e instanceof IllegalArgumentException ) { InvalidObjectException ee = new InvalidObjectException ( e . getMessage ( ) ) ; ee . initCause ( e ) ; throw ee ; } throw e ; } }
verifies the syntax of the target name and recreates any transient state .
