protected final void deserialize(ObjectInputStream ois,Collection coll) throws IOException, ClassNotFoundException {
  int count=0;
  count=ois.readInt();
  while (count-- > 0) {
    coll.add(ois.readObject());
  }
}

protected final void deserialize ( ObjectInputStream ois , Collection coll ) throws IOException , ClassNotFoundException { int count = 0 ; count = ois . readInt ( ) ; while ( count -- > 0 ) { coll . add ( ois . readObject ( ) ) ; } }
used by readobject to deserialize a collection .
