void invokeReadObject(Object obj,ObjectInputStream in) throws ClassNotFoundException, IOException, UnsupportedOperationException {
  requireInitialized();
  if (readObjectMethod != null) {
    try {
      readObjectMethod.invoke(obj,new Object[]{in});
    }
 catch (    InvocationTargetException ex) {
      Throwable th=ex.getTargetException();
      if (th instanceof ClassNotFoundException) {
        throw (ClassNotFoundException)th;
      }
 else       if (th instanceof IOException) {
        throw (IOException)th;
      }
 else {
        throwMiscException(th);
      }
    }
catch (    IllegalAccessException ex) {
      throw new InternalError(ex);
    }
  }
 else {
    throw new UnsupportedOperationException();
  }
}

void invokeReadObject ( Object obj , ObjectInputStream in ) throws ClassNotFoundException , IOException , UnsupportedOperationException { requireInitialized ( ) ; if ( readObjectMethod != null ) { try { readObjectMethod . invoke ( obj , new Object [ ] { in } ) ; } catch ( InvocationTargetException ex ) { Throwable th = ex . getTargetException ( ) ; if ( th instanceof ClassNotFoundException ) { throw ( ClassNotFoundException ) th ; } else if ( th instanceof IOException ) { throw ( IOException ) th ; } else { throwMiscException ( th ) ; } } catch ( IllegalAccessException ex ) { throw new InternalError ( ex ) ; } } else { throw new UnsupportedOperationException ( ) ; } }
invokes the readobject method of the represented serializable class . throws unsupportedoperationexception if this class descriptor is not associated with a class , or if the class is externalizable , non - serializable or does not define readobject .
