/** * This method reads this <code>ServicesRemovalStatus</code> object from the specified input * stream object. * * @param is DataInput object * @param versionNo * @exception IOException thrown in case of error while reading data * @since Tifosi2.0 */ public void fromStream(DataInput is, int versionNo) throws IOException { int size = is.readInt(); for (int i = 0; i < size; i++) { String key = readUTF(is); ServiceRemovalInfo val = new ServiceRemovalInfo(); val.fromStream(is, versionNo); m_hashServiceRemovalStatus.put(key, val); } }
/** * This method writes this <code>ServicesRemovalStatus</code> object to the specified output * stream object. * * @param out DataOutput object * @param versionNo * @exception IOException thrown in case of error while writing data. * @since Tifosi2.0 */ public void toStream(DataOutput out, int versionNo) throws IOException { out.writeInt(m_hashServiceRemovalStatus.size()); Enumeration keys = m_hashServiceRemovalStatus.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); ServiceRemovalInfo val = (ServiceRemovalInfo) m_hashServiceRemovalStatus.get(key); writeUTF(out, key); val.toStream(out, versionNo); } }