void invokeWriteObject(Object obj,ObjectOutputStream out) throws IOException, UnsupportedOperationException {
  requireInitialized();
  if (writeObjectMethod != null) {
    try {
      writeObjectMethod.invoke(obj,new Object[]{out});
    }
 catch (    InvocationTargetException ex) {
      Throwable th=ex.getTargetException();
      if (th instanceof IOException) {
        throw (IOException)th;
      }
 else {
        throwMiscException(th);
      }
    }
catch (    IllegalAccessException ex) {
      throw new InternalError(ex);
    }
  }
 else {
    throw new UnsupportedOperationException();
  }
}

void invokeWriteObject ( Object obj , ObjectOutputStream out ) throws IOException , UnsupportedOperationException { requireInitialized ( ) ; if ( writeObjectMethod != null ) { try { writeObjectMethod . invoke ( obj , new Object [ ] { out } ) ; } catch ( InvocationTargetException ex ) { Throwable th = ex . getTargetException ( ) ; if ( th instanceof IOException ) { throw ( IOException ) th ; } else { throwMiscException ( th ) ; } } catch ( IllegalAccessException ex ) { throw new InternalError ( ex ) ; } } else { throw new UnsupportedOperationException ( ) ; } }
invokes the writeobject 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 writeobject .
