public void defaultWriteObject() throws IOException {
  SerialCallbackContext ctx=curContext;
  if (ctx == null) {
    throw new NotActiveException("not in call to writeObject");
  }
  Object curObj=ctx.getObj();
  ObjectStreamClass curDesc=ctx.getDesc();
  bout.setBlockDataMode(false);
  defaultWriteFields(curObj,curDesc);
  bout.setBlockDataMode(true);
}

public void defaultWriteObject ( ) throws IOException { SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new NotActiveException ( "not in call to writeObject" ) ; } Object curObj = ctx . getObj ( ) ; ObjectStreamClass curDesc = ctx . getDesc ( ) ; bout . setBlockDataMode ( false ) ; defaultWriteFields ( curObj , curDesc ) ; bout . setBlockDataMode ( true ) ; }
write the non - static and non - transient fields of the current class to this stream . this may only be called from the writeobject method of the class being serialized . it will throw the notactiveexception if it is called otherwise .
