public void write(OutputStream outputStream,Storable obj) throws IOException {
  ObjectOutputStream oos=new ObjectOutputStream(outputStream);
  oos.writeObject(obj);
}

public void write ( OutputStream outputStream , Storable obj ) throws IOException { ObjectOutputStream oos = new ObjectOutputStream ( outputStream ) ; oos . writeObject ( obj ) ; }
stores the given object on the given stream using java serialization .
