Code example for ObjectOutput

Methods: writeInt, writeObject

0
		public int hashCode() { 
			return hashCode;
		} 
 
		public String toString() {
			return key + "=" + value;
		} 
 
		public void writeExternal(final ObjectOutput s) throws IOException {
			s.writeInt(hashCode);
			s.writeObject(key);
			s.writeObject(value);
			s.writeObject(next);
		} 
 
		public void readExternal(final ObjectInput s) throws IOException,
				ClassNotFoundException { 
			hashCode = s.readInt();
			key = s.readObject();
			value = s.readObject();
			next = (Entry) s.readObject();