private void writeObject(ObjectOutputStream oos) throws IOException {
  oos.defaultWriteObject();
  boolean writeFont=(f != OMText.DEFAULT_FONT);
  oos.writeBoolean(writeFont);
  if (writeFont) {
    oos.writeObject(f.getName());
    oos.writeInt(f.getSize());
    oos.writeInt(f.getStyle());
  }
  writeStroke(oos,stroke,OMGraphic.BASIC_STROKE);
  writeStroke(oos,textMatteStroke,DEFAULT_TEXT_MATTE_STROKE);
}

private void writeObject ( ObjectOutputStream oos ) throws IOException { oos . defaultWriteObject ( ) ; boolean writeFont = ( f != OMText . DEFAULT_FONT ) ; oos . writeBoolean ( writeFont ) ; if ( writeFont ) { oos . writeObject ( f . getName ( ) ) ; oos . writeInt ( f . getSize ( ) ) ; oos . writeInt ( f . getStyle ( ) ) ; } writeStroke ( oos , stroke , OMGraphic . BASIC_STROKE ) ; writeStroke ( oos , textMatteStroke , DEFAULT_TEXT_MATTE_STROKE ) ; }
write this object to a stream .
