private void writeObject(ObjectOutputStream stream) throws IOException {
  byte[] rules=packRules();
  int[] times=packTimes();
  makeRulesCompatible();
  stream.defaultWriteObject();
  stream.writeInt(rules.length);
  stream.write(rules);
  stream.writeObject(times);
  unpackRules(rules);
  unpackTimes(times);
}

private void writeObject ( ObjectOutputStream stream ) throws IOException { byte [ ] rules = packRules ( ) ; int [ ] times = packTimes ( ) ; makeRulesCompatible ( ) ; stream . defaultWriteObject ( ) ; stream . writeInt ( rules . length ) ; stream . write ( rules ) ; stream . writeObject ( times ) ; unpackRules ( rules ) ; unpackTimes ( times ) ; }
save the state of this object to a stream ( i . e . , serialize it ) .
