📄 valuehandler.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:37:45 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface ValueHandler</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ValueHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/rmi/CORBA/UtilDelegate.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ValueHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.rmi.CORBA</FONT><BR>Interface ValueHandler</H2><HR><DL><DT>public interface <B>ValueHandler</B></DL><P>Defines methods which allow serialization of Java objects to and from GIOP streams.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#getRMIRepositoryID(java.lang.Class)">getRMIRepositoryID</A></B>(<A HREF="../../../java/lang/Class.html">Class</A> clz)</CODE><BR> Returns the CORBA RepositoryId for the given Java class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/SendingContext/RunTime.html">RunTime</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#getRunTimeCodeBase()">getRunTimeCodeBase</A></B>()</CODE><BR> Returns the CodeBase for this ValueHandler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#isCustomMarshaled(java.lang.Class)">isCustomMarshaled</A></B>(<A HREF="../../../java/lang/Class.html">Class</A> clz)</CODE><BR> Indicates whether the given class performs custom or default marshaling.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/io/Serializable.html">Serializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime)">readValue</A></B>(<A HREF="../../../org/omg/CORBA/portable/InputStream.html">InputStream</A> in, int offset, <A HREF="../../../java/lang/Class.html">Class</A> clz, <A HREF="../../../java/lang/String.html">String</A> repositoryID, <A HREF="../../../org/omg/SendingContext/RunTime.html">RunTime</A> sender)</CODE><BR> Reads a value from the stream using Java semantics.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/io/Serializable.html">Serializable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#writeReplace(java.io.Serializable)">writeReplace</A></B>(<A HREF="../../../java/io/Serializable.html">Serializable</A> value)</CODE><BR> If the value contains a <code>writeReplace</code> method then the result is returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/rmi/CORBA/ValueHandler.html#writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable)">writeValue</A></B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A> out, <A HREF="../../../java/io/Serializable.html">Serializable</A> value)</CODE><BR> Writes a value to the stream using Java semantics.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable)"><!-- --></A><H3>writeValue</H3><PRE>public void <B>writeValue</B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A> out, <A HREF="../../../java/io/Serializable.html">Serializable</A> value)</PRE><DL><DD>Writes a value to the stream using Java semantics.<DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the stream to write the value to.<DD><CODE>value</CODE> - the value to be written to the stream.</DL></DD></DL><HR><A NAME="readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime)"><!-- --></A><H3>readValue</H3><PRE>public <A HREF="../../../java/io/Serializable.html">Serializable</A> <B>readValue</B>(<A HREF="../../../org/omg/CORBA/portable/InputStream.html">InputStream</A> in, int offset, <A HREF="../../../java/lang/Class.html">Class</A> clz, <A HREF="../../../java/lang/String.html">String</A> repositoryID, <A HREF="../../../org/omg/SendingContext/RunTime.html">RunTime</A> sender)</PRE><DL><DD>Reads a value from the stream using Java semantics.<DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the stream to read the value from.<DD><CODE>offset</CODE> - the current position in the input stream.<DD><CODE>clz</CODE> - the type of the value to be read in.<DD><CODE>repositoryID</CODE> - the RepositoryId of the value to be read in.<DD><CODE>sender</CODE> - the sending context runtime codebase.<DT><B>Returns:</B><DD>the value read from the stream.</DL></DD></DL><HR><A NAME="getRMIRepositoryID(java.lang.Class)"><!-- --></A><H3>getRMIRepositoryID</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getRMIRepositoryID</B>(<A HREF="../../../java/lang/Class.html">Class</A> clz)</PRE><DL><DD>Returns the CORBA RepositoryId for the given Java class.<DD><DL><DT><B>Parameters:</B><DD><CODE>clz</CODE> - a Java class.<DT><B>Returns:</B><DD>the CORBA RepositoryId for the class.</DL></DD></DL><HR><A NAME="isCustomMarshaled(java.lang.Class)"><!-- --></A><H3>isCustomMarshaled</H3><PRE>public boolean <B>isCustomMarshaled</B>(<A HREF="../../../java/lang/Class.html">Class</A> clz)</PRE><DL><DD>Indicates whether the given class performs custom or default marshaling.<DD><DL><DT><B>Parameters:</B><DD><CODE>clz</CODE> - the class to test for custom marshaling.<DT><B>Returns:</B><DD><code>true</code> if the class performs custom marshaling, <code>false</code> if it does not.</DL></DD></DL><HR><A NAME="getRunTimeCodeBase()"><!-- --></A><H3>getRunTimeCodeBase</H3><PRE>public <A HREF="../../../org/omg/SendingContext/RunTime.html">RunTime</A> <B>getRunTimeCodeBase</B>()</PRE><DL><DD>Returns the CodeBase for this ValueHandler. This is used by the ORB runtime. The server sends the service context containing the IOR for this CodeBase on the first GIOP reply. The client does the same on the first GIOP request.<DD><DL><DT><B>Returns:</B><DD>the SendingContext.CodeBase of this ValueHandler.</DL></DD></DL><HR><A NAME="writeReplace(java.io.Serializable)"><!-- --></A><H3>writeReplace</H3><PRE>public <A HREF="../../../java/io/Serializable.html">Serializable</A> <B>writeReplace</B>(<A HREF="../../../java/io/Serializable.html">Serializable</A> value)</PRE><DL><DD>If the value contains a <code>writeReplace</code> method then the result is returned. Otherwise, the value itself is returned.<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the value to be marshaled.<DT><B>Returns:</B><DD>the true value to marshal on the wire.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ValueHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/rmi/CORBA/UtilDelegate.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ValueHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -