Code example for ObjectOutput

Methods: writeInt, writeObject, writeUTF

0
	   } 
   } 
    
   public void writeExternal(final ObjectOutput out) throws IOException 
   { 
      out.writeUTF(this.term);
      out.writeInt(this.coll_freq);
      out.writeInt(this.doc_freq);
      out.writeObject(this.postings);
   } 
 
   public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException 
   { 
      this.term = in.readUTF();
      this.coll_freq = in.readInt();
      this.doc_freq = in.readInt();
      this.postings = (Map<Integer, ArrayList<Integer>>)in.readObject();
   } 
 
   public boolean equals(final Object o) 
   {