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

📄 util.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="mapSystemException(org.omg.CORBA.SystemException)"><!-- --></A><H3>mapSystemException</H3><PRE>public static <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A> <B>mapSystemException</B>(<A HREF="../../../org/omg/CORBA/SystemException.html">SystemException</A>&nbsp;ex)</PRE><DL><DD>Maps a SystemException to a RemoteException.<DD><DL><DT><B>Parameters:</B><DD><CODE>ex</CODE> - the SystemException to map.<DT><B>Returns:</B><DD>the mapped exception.</DL></DD></DL><HR><A NAME="writeAny(org.omg.CORBA.portable.OutputStream, java.lang.Object)"><!-- --></A><H3>writeAny</H3><PRE>public static void <B>writeAny</B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A>&nbsp;out,                            <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Writes any java.lang.Object as a CORBA any.<DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the stream in which to write the any.<DD><CODE>obj</CODE> - the object to write as an any.</DL></DD></DL><HR><A NAME="readAny(org.omg.CORBA.portable.InputStream)"><!-- --></A><H3>readAny</H3><PRE>public static <A HREF="../../../java/lang/Object.html">Object</A> <B>readAny</B>(<A HREF="../../../org/omg/CORBA/portable/InputStream.html">InputStream</A>&nbsp;in)</PRE><DL><DD>Reads a java.lang.Object as a CORBA any.<DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the stream from which to read the any.<DT><B>Returns:</B><DD>the object read from the stream.</DL></DD></DL><HR><A NAME="writeRemoteObject(org.omg.CORBA.portable.OutputStream, java.lang.Object)"><!-- --></A><H3>writeRemoteObject</H3><PRE>public static void <B>writeRemoteObject</B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A>&nbsp;out,                                     <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is an exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>.  If <code>obj</code> is a CORBA Object, it is written to  <code>out.write_Object(org.omg.CORBA.Object)</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the stream in which to write the object.<DD><CODE>obj</CODE> - the object to write.</DL></DD></DL><HR><A NAME="writeAbstractObject(org.omg.CORBA.portable.OutputStream, java.lang.Object)"><!-- --></A><H3>writeAbstractObject</H3><PRE>public static void <B>writeAbstractObject</B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A>&nbsp;out,                                       <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Writes a java.lang.Object as either a value or a CORBA Object.  If <code>obj</code> is a value object or a stub object, it is written to  <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an exported  RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to <code>out.write_abstract_interface(java.lang.Object)</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the stream in which to write the object.<DD><CODE>obj</CODE> - the object to write.</DL></DD></DL><HR><A NAME="registerTarget(javax.rmi.CORBA.Tie, java.rmi.Remote)"><!-- --></A><H3>registerTarget</H3><PRE>public static void <B>registerTarget</B>(<A HREF="../../../javax/rmi/CORBA/Tie.html">Tie</A>&nbsp;tie,                                  <A HREF="../../../java/rmi/Remote.html">Remote</A>&nbsp;target)</PRE><DL><DD>Registers a target for a tie. Adds the tie to an internal table and calls <A HREF="../../../javax/rmi/CORBA/Tie.html#setTarget(java.rmi.Remote)"><CODE>Tie.setTarget(java.rmi.Remote)</CODE></A> on the tie object.<DD><DL><DT><B>Parameters:</B><DD><CODE>tie</CODE> - the tie to register.<DD><CODE>target</CODE> - the target for the tie.</DL></DD></DL><HR><A NAME="unexportObject(java.rmi.Remote)"><!-- --></A><H3>unexportObject</H3><PRE>public static void <B>unexportObject</B>(<A HREF="../../../java/rmi/Remote.html">Remote</A>&nbsp;target)</PRE><DL><DD>Removes the associated tie from an internal table and calls <A HREF="../../../javax/rmi/CORBA/Tie.html#deactivate()"><CODE>Tie.deactivate()</CODE></A>  to deactivate the object.<DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the object to unexport.</DL></DD></DL><HR><A NAME="getTie(java.rmi.Remote)"><!-- --></A><H3>getTie</H3><PRE>public static <A HREF="../../../javax/rmi/CORBA/Tie.html">Tie</A> <B>getTie</B>(<A HREF="../../../java/rmi/Remote.html">Remote</A>&nbsp;target)</PRE><DL><DD>Returns the tie (if any) for a given target object.<DD><DL><DT><B>Returns:</B><DD>the tie or null if no tie is registered for the given target.</DL></DD></DL><HR><A NAME="createValueHandler()"><!-- --></A><H3>createValueHandler</H3><PRE>public static <A HREF="../../../javax/rmi/CORBA/ValueHandler.html">ValueHandler</A> <B>createValueHandler</B>()</PRE><DL><DD>Returns a singleton instance of a class that implements the <A HREF="../../../javax/rmi/CORBA/ValueHandler.html"><CODE>ValueHandler</CODE></A> interface.<DD><DL><DT><B>Returns:</B><DD>a class which implements the ValueHandler interface.</DL></DD></DL><HR><A NAME="getCodebase(java.lang.Class)"><!-- --></A><H3>getCodebase</H3><PRE>public static <A HREF="../../../java/lang/String.html">String</A> <B>getCodebase</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;clz)</PRE><DL><DD>Returns the codebase, if any, for the given class.<DD><DL><DT><B>Parameters:</B><DD><CODE>clz</CODE> - the class to get a codebase for.<DT><B>Returns:</B><DD>a space-separated list of URLs, or null.</DL></DD></DL><HR><A NAME="loadClass(java.lang.String, java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>loadClass</H3><PRE>public static <A HREF="../../../java/lang/Class.html">Class</A> <B>loadClass</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;className,                              <A HREF="../../../java/lang/String.html">String</A>&nbsp;remoteCodebase,                              <A HREF="../../../java/lang/ClassLoader.html">ClassLoader</A>&nbsp;loader)                       throws <A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A></PRE><DL><DD>Returns a class instance for the specified class.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DD><CODE>remoteCodebase</CODE> - a space-separated list of URLs at which the class might be found. May be null.<DD><CODE>loadingContext</CODE> - a class whose ClassLoader may be used to load the class if all other methods fail.<DT><B>Returns:</B><DD>the <code>Class</code> object representing the loaded class.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A></CODE> - if class cannot be loaded.</DL></DD></DL><HR><A NAME="isLocal(javax.rmi.CORBA.Stub)"><!-- --></A><H3>isLocal</H3><PRE>public static boolean <B>isLocal</B>(<A HREF="../../../javax/rmi/CORBA/Stub.html">Stub</A>&nbsp;stub)                       throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns true if the stub is in the same ORB instance as is the servant. This method is equivalent to <code>ObjectImpl._is_local()</code> except that it throws a RemoteException instead of a SystemException.<DD><DL><DT><B>Parameters:</B><DD><CODE>stub</CODE> - the stub to test.<DT><B>Returns:</B><DD>true if local, false if not.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if stub has not been connected to an ORB.</DL></DD></DL><HR><A NAME="wrapException(java.lang.Throwable)"><!-- --></A><H3>wrapException</H3><PRE>public static <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A> <B>wrapException</B>(<A HREF="../../../java/lang/Throwable.html">Throwable</A>&nbsp;orig)</PRE><DL><DD>Wraps an exception thrown by an implementation method.  It returns the corresponding client-side exception.<DD><DL><DT><B>Parameters:</B><DD><CODE>orig</CODE> - the exception to wrap.<DT><B>Returns:</B><DD>the wrapped exception.</DL></DD></DL><HR><A NAME="copyObjects(java.lang.Object[], org.omg.CORBA.ORB)"><!-- --></A><H3>copyObjects</H3><PRE>public static <A HREF="../../../java/lang/Object.html">Object</A>[] <B>copyObjects</B>(<A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;obj,                                   <A HREF="../../../org/omg/CORBA/ORB.html">ORB</A>&nbsp;orb)                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Copies or connects an array of objects. Used by local stubs to copy any number of actual parameters, preserving sharing across parameters as necessary to support RMI semantics.<DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the objects to copy or connect.<DD><CODE>orb</CODE> - the ORB.<DT><B>Returns:</B><DD>the copied or connected objects.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if any object could not be copied or connected.</DL></DD></DL><HR><A NAME="copyObject(java.lang.Object, org.omg.CORBA.ORB)"><!-- --></A><H3>copyObject</H3><PRE>public static <A HREF="../../../java/lang/Object.html">Object</A> <B>copyObject</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj,                                <A HREF="../../../org/omg/CORBA/ORB.html">ORB</A>&nbsp;orb)                         throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Copies or connects an object. Used by local stubs to copy  an actual parameter, result object, or exception.<DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to copy.<DD><CODE>orb</CODE> - the ORB.<DT><B>Returns:</B><DD>the copy or connected object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the object could not be copied or connected.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Util.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/rmi/CORBA/Stub.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Util.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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 + -