/** * Description of the Method * * @param os Description of the Parameter * @param clientVersionNo Description of the Parameter * @exception java.io.IOException Description of the Exception */ public void toStream(java.io.DataOutput os, int clientVersionNo) throws java.io.IOException { super.toStream(os, clientVersionNo); writeUTF(os, m_appContext); int size = m_vecOfContextsCarriedFwd.size(); os.writeInt(size); Enumeration enu = m_vecOfContextsCarriedFwd.elements(); while (enu.hasMoreElements()) { DmiSourceContext context = (DmiSourceContext) enu.nextElement(); context.toStream(os, clientVersionNo); } if (clientVersionNo <= 3000) return; os.writeInt(m_hashCarryFwdProps.size()); Enumeration keys = m_hashCarryFwdProps.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); String value = (String) m_hashCarryFwdProps.get(key); writeUTF(os, key); writeUTF(os, value); } }
/** * Description of the Method * * @param os Description of the Parameter * @param versionNo * @exception java.io.IOException Description of the Exception */ public void toStream(java.io.DataOutput os, int versionNo) throws java.io.IOException { super.toStream(os, versionNo); int size = m_vecSrvStates.size(); os.writeInt(size); for (int i = 0; i < size; i++) { ServiceStatus status = (ServiceStatus) m_vecSrvStates.elementAt(i); status.toStream(os, versionNo); } }
/** * This method is called to write this object of <code>InPort</code> to the specified output * stream object. * * @param out DataOutput object * @param versionNo Description of the Parameter * @exception IOException if an error occurs while converting data and writing it to a binary * stream. * @since Tifosi2.0 */ public void toStream(DataOutput out, int versionNo) throws IOException { super.toStream(out, versionNo); writeUTF(out, m_strPortName); writeUTF(out, m_strDscription); writeUTF(out, m_strXSD); writeUTF(out, m_strJavaClass); out.writeBoolean(m_bIsSyncRequestType); if (m_params != null && m_params.size() > 0) { int num = m_params.size(); out.writeInt(num); for (int i = 0; i < num; ++i) { Param param = (Param) m_params.elementAt(i); param.toStream(out, versionNo); } } else { out.writeInt(0); } }