public void snapshot(OutputStream out,Object value) throws Exception {
  MarshalOutputStream s=new MarshalOutputStream(out);
  s.writeObject(value);
  s.flush();
}

public void snapshot ( OutputStream out , Object value ) throws Exception { MarshalOutputStream s = new MarshalOutputStream ( out ) ; s . writeObject ( value ) ; s . flush ( ) ; }
writes the snapshot object to a stream . this callback is invoked when the client calls the snaphot method of reliablelog .
