public override void writeExternal(java.io.ObjectOutput outJ)
 {//throws IOException {
     outJ.writeInt(maximumSize);
     outJ.writeInt(size());
     for (java.util.Iterator <Object> iterator = keySet().iterator(); iterator.hasNext();)
     {
         Object key = iterator.next();
         outJ.writeObject(key);
         // be sure to call super.get(key), or you're likely to
         // get infinite promotion recursion
         Object value = base.get(key);
         outJ.writeObject(value);
     }
 }
Ejemplo n.º 2
0
 /**
  * Serializes this map to the given stream.
  *
  * @param out  the stream to serialize to
  * @throws IOException  if the stream raises it
  */
 public virtual void writeExternal(java.io.ObjectOutput outJ)
 {//throws IOException {
     outJ.writeInt(size());
     for (Entry pos = sentinel.next; pos != sentinel; pos = pos.next)
     {
         outJ.writeObject(pos.getKey());
         outJ.writeObject(pos.getValue());
     }
 }