⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialized-form.html

📁 请笑纳 请笑纳 请笑纳 请笑纳 请笑纳 请笑纳
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 <code>RemoteStub</code> that was returned from any of the <code>UnicastRemoteObject.exportObject</code> methods and custom socket factories are used, the external ref type name is <code>"UnicastRef2"</code>. If this object is an instance of <code>RemoteStub</code> that was returned from any of the <code>java.rmi.activationActivatable.exportObject</code> methods, the external ref type name is <code>"ActivatableRef"</code>. If this object is an instance of <code>RemoteStub</code> that was returned from the <code>RemoteObject.toStub</code> method (and the argument passed to <code>toStub</code> was not itself a <code>RemoteStub</code>), the external ref type name is a function of how the remote object passed to <code>toStub</code> was exported, as described above. If this object is an instance of <code>RemoteStub</code> that was originally created via deserialization, the external ref type name is the same as that which was read when this object was deserialized. <p>Following is the data that must be written by the <code>writeExternal</code> method and read by the <code>readExternal</code> method of <code>RemoteRef</code> implementation classes that correspond to the each of the defined external ref type names: <p>For <code>"UnicastRef"</code>: <ul> <li>the hostname of the referenced remote object, written by <CODE>DataOutput.writeUTF(String)</CODE> <li>the port of the referenced remote object, written by <CODE>DataOutput.writeInt(int)</CODE> <li>the data written as a result of calling <code>java.rmi.server.ObjID.write()</code> on the <code>ObjID</code> instance contained in the reference <li>the boolean value <code>false</code>, written by <CODE>DataOutput.writeBoolean(boolean)</CODE> </ul> <p>For <code>"UnicastRef2"</code> with a <code>null</code> client socket factory: <ul> <li>the byte value <code>0x00</code> (indicating <code>null</code> client socket factory), written by <CODE>DataOutput.writeByte(int)</CODE> <li>the hostname of the referenced remote object, written by <CODE>DataOutput.writeUTF(String)</CODE> <li>the port of the referenced remote object, written by <CODE>DataOutput.writeInt(int)</CODE> <li>the data written as a result of calling <code>java.rmi.server.ObjID.write()</code> on the <code>ObjID</code> instance contained in the reference <li>the boolean value <code>false</code>, written by <CODE>DataOutput.writeBoolean(boolean)</CODE> </ul>  <p>For <code>"UnicastRef2"</code> with a non-<code>null</code> client socket factory: <ul> <li>the byte value <code>0x01</code> (indicating non-<code>null</code> client socket factory), written by <CODE>DataOutput.writeByte(int)</CODE> <li>the hostname of the referenced remote object, written by <CODE>DataOutput.writeUTF(String)</CODE> <li>the port of the referenced remote object, written by <CODE>DataOutput.writeInt(int)</CODE> <li>a client socket factory (object of type <code>java.rmi.server.RMIClientSocketFactory</code>), written by passing it to an invocation of <code>writeObject</code> on the stream instance <li>the data written as a result of calling <code>java.rmi.server.ObjID.write()</code> on the <code>ObjID</code> instance contained in the reference <li>the boolean value <code>false</code>, written by <CODE>DataOutput.writeBoolean(boolean)</CODE> </ul> <p>For <code>"ActivatableRef"</code> with a <code>null</code> nested remote reference: <ul> <li>an instance of <code>java.rmi.activation.ActivationID</code>, written by passing it to an invocation of <code>writeObject</code> on the stream instance <li>a zero-length string (<code>""</code>), written by <CODE>DataOutput.writeUTF(String)</CODE> </ul> <p>For <code>"ActivatableRef"</code> with a non-<code>null</code> nested remote reference: <ul> <li>an instance of <code>java.rmi.activation.ActivationID</code>, written by passing it to an invocation of <code>writeObject</code> on the stream instance <li>the external ref type name of the nested remote reference, which must be <code>"UnicastRef2"</code>, written by <CODE>DataOutput.writeUTF(String)</CODE> <li>the external form of the nested remote reference, written by invoking its <code>writeExternal</code> method with the stream instance (see the description of the external form for <code>"UnicastRef2"</code> above) </ul> <p>For <code>"UnicastServerRef"</code> and <code>"UnicastServerRef2"</code>, no data is written by the <code>writeExternal</code> method or read by the <code>readExternal</code> method.</DL></DD></DL><P><A NAME="java.rmi.server.RemoteServer"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/RemoteServer.html">java.rmi.server.RemoteServer</A> implements Serializable</B></FONT></TD></TR></TABLE><P><P><A NAME="java.rmi.server.RemoteStub"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/RemoteStub.html">java.rmi.server.RemoteStub</A> implements Serializable</B></FONT></TD></TR></TABLE><P><P><A NAME="java.rmi.server.ServerCloneException"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/ServerCloneException.html">java.rmi.server.ServerCloneException</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>detail</H3><PRE>java.lang.Exception <B>detail</B></PRE><DL><DD>Nested exception for ServerCloneException.<DT><DD>&nbsp;<DD><DL><DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><P><A NAME="java.rmi.server.ServerNotActiveException"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/ServerNotActiveException.html">java.rmi.server.ServerNotActiveException</A> implements Serializable</B></FONT></TD></TR></TABLE><P><P><A NAME="java.rmi.server.UID"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/UID.html">java.rmi.server.UID</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>unique</H3><PRE>int <B>unique</B></PRE><DL><DT><DD>Integer that helps create a unique UID.</DL><HR><H3>time</H3><PRE>long <B>time</B></PRE><DL><DT><DD>Long used to record the time.  The <code>time</code>         will be used to create a unique UID.</DL><HR><H3>count</H3><PRE>short <B>count</B></PRE><DL><DT><DD>Short used to create a hash key for <code>this</code>         UID.</DL><P><A NAME="java.rmi.server.UnicastRemoteObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class <A HREF="java/rmi/server/UnicastRemoteObject.html">java.rmi.server.UnicastRemoteObject</A> implements Serializable</B></FONT></TD></TR></TABLE><P><A NAME="serialized_methods"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialization Methods</B></FONT></TD></TR></TABLE><P><A NAME="readObject(java.io.ObjectInputStream)"><!-- --></A><H3>readObject</H3><PRE>private void <B>readObject</B>(java.io.ObjectInputStream&nbsp;in)                 throws java.io.IOException,                        java.lang.ClassNotFoundException</PRE><DL><DD>Re-export the remote object when it is deserialized.</DL><A NAME="serializedForm"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Serialized Fields</B></FONT></TD></TR></TABLE><H3>port</H3><PRE>int <B>port</B></PRE><DL><DT><DD>port number on which to export object</DL><HR><H3>csf</H3><PRE><A HREF="java/rmi/server/RMIClientSocketFactory.html">RMIClientSocketFactory</A> <B>csf</B></PRE><DL><DT><DD>client-side socket factory (if any)</DL><HR><H3>ssf</H3><PRE><A HREF="java/rmi/server/RMIServerSocketFactory.html">RMIServerSocketFactory</A> <B>ssf</B></PRE><DL><DT><DD>server-side socket factory (if any) to use when exporting object</DL><P><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>J2ME RMI Optional Package</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV&nbsp;&nbsp;NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="serialized-form.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1">Copyright 1994-2002 Sun Microsystems, Inc. All Rights Reserved.</font> </BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -