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

📄 any.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Any.html#type(org.omg.CORBA.TypeCode)">type</A></B>(<A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A>&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this <code>Any</code> object's <code>type</code> field to the given <code>TypeCode</code> object and clears its value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Any.html#write_value(org.omg.CORBA.portable.OutputStream)">write_value</A></B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A>&nbsp;os)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out to the given output stream the typecode and value of this <code>Any</code> object.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Any()"><!-- --></A><H3>Any</H3><PRE>public <B>Any</B>()</PRE><DL></DL><!-- ============ 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="type()"><!-- --></A><H3>type</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>type</B>()</PRE><DL><DD>Returns type information for the element contained in this <code>Any</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>TypeCode</code> object containing type information                about the value contained in this <code>Any</code> object</DL></DD></DL><HR><A NAME="type(org.omg.CORBA.TypeCode)"><!-- --></A><H3>type</H3><PRE>public abstract void <B>type</B>(<A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A>&nbsp;t)</PRE><DL><DD>Sets this <code>Any</code> object's <code>type</code> field to the given <code>TypeCode</code> object and clears its value. <P> Note that using this method to set the type code wipes out the value if there is one. The method is provided primarily so that the type may be set properly for IDL <code>out</code> parameters.  Generally, setting the type is done by the <code>insert_X</code> methods, which will set the type to X if it is not already set to X.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the <code>TypeCode</code> object giving                information for the value in                this <code>Any</code> object</DL></DD></DL><HR><A NAME="equal(org.omg.CORBA.Any)"><!-- --></A><H3>equal</H3><PRE>public abstract boolean <B>equal</B>(<A HREF="../../../org/omg/CORBA/Any.html">Any</A>&nbsp;a)</PRE><DL><DD>Checks for equality between this <code>Any</code> object and the given <code>Any</code> object.  Two <code>Any</code> objects are equal if both their values and type codes are equal.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the <code>Any</code> object to test for equality<DT><B>Returns:</B><DD><code>true</code> if the <code>Any</code> objects are equal; <code>false</code> otherwise<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><HR><A NAME="read_value(org.omg.CORBA.portable.InputStream, org.omg.CORBA.TypeCode)"><!-- --></A><H3>read_value</H3><PRE>public abstract void <B>read_value</B>(<A HREF="../../../org/omg/CORBA/portable/InputStream.html">InputStream</A>&nbsp;is,                                <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A>&nbsp;t)                         throws <A HREF="../../../org/omg/CORBA/MARSHAL.html">MARSHAL</A></PRE><DL><DD>Reads off (unmarshals) the value of an <code>Any</code> object from the given input stream using the given typecode.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - the <code>org.omg.CORBA.portable.InputStream</code>                object from which to read                the value contained in this <code>Any</code> object<DD><CODE>t</CODE> - a <code>TypeCode</code> object containing type information           about the value to be read<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/MARSHAL.html">MARSHAL</A></CODE> - when the given <code>TypeCode</code> object is                    not consistent with the value that was contained                    in the input stream</DL></DD></DL><HR><A NAME="write_value(org.omg.CORBA.portable.OutputStream)"><!-- --></A><H3>write_value</H3><PRE>public abstract void <B>write_value</B>(<A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A>&nbsp;os)</PRE><DL><DD>Writes out to the given output stream the typecode and value of this <code>Any</code> object. <P> If this method is called on an <code>Any</code> object that has not had a value inserted into its <code>value</code> field, it will throw the exception <code>java.lang.NullPointerException</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>os</CODE> - the <code>org.omg.CORBA.portable.OutputStream</code>                object into which to marshal the value and typecode                of this <code>Any</code> object</DL></DD></DL><HR><A NAME="create_output_stream()"><!-- --></A><H3>create_output_stream</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/portable/OutputStream.html">OutputStream</A> <B>create_output_stream</B>()</PRE><DL><DD>Creates an output stream into which this <code>Any</code> object's value can be marshalled.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the newly-created <code>OutputStream</code></DL></DD></DL><HR><A NAME="create_input_stream()"><!-- --></A><H3>create_input_stream</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/portable/InputStream.html">InputStream</A> <B>create_input_stream</B>()</PRE><DL><DD>Creates an input stream from which this <code>Any</code> object's value can be unmarshalled.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the newly-created <code>InputStream</code></DL></DD></DL><HR><A NAME="insert_Streamable(org.omg.CORBA.portable.Streamable)"><!-- --></A><H3>insert_Streamable</H3><PRE>public abstract void <B>insert_Streamable</B>(<A HREF="../../../org/omg/CORBA/portable/Streamable.html">Streamable</A>&nbsp;s)</PRE><DL><DD>Inserts the given <code>Streamable</code> object into this <code>Any</code> object's <code>value</code> field. This method allows the insertion of non-primitive IDL types.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the <code>Streamable</code> object to insert into this                <code>Any</code> object; may be a non-primitive                IDL type</DL></DD></DL><HR><A NAME="extract_short()"><!-- --></A><H3>extract_short</H3><PRE>public abstract short <B>extract_short</B>()                             throws <A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></PRE><DL><DD>Extracts the <code>short</code> in this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>short</code> stored in this <code>Any</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></CODE> - if this  <code>Any</code> object               contains something other than a <code>short</code> or the              <code>value</code> field has not yet been set</DL></DD></DL><HR><A NAME="insert_short(short)"><!-- --></A><H3>insert_short</H3><PRE>public abstract void <B>insert_short</B>(short&nbsp;s)</PRE><DL><DD>Inserts the given <code>short</code>  into this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the <code>short</code> to insert into this                <code>Any</code> object</DL></DD></DL><HR><A NAME="extract_long()"><!-- --></A><H3>extract_long</H3><PRE>public abstract int <B>extract_long</B>()                          throws <A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></PRE><DL><DD>Extracts the <code>int</code> in this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>int</code> stored in this <code>Any</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></CODE> - if this  <code>Any</code> object               contains something other than an <code>int</code> or the              <code>value</code> field has not yet been set</DL></DD></DL><HR><A NAME="insert_long(int)"><!-- --></A><H3>insert_long</H3><PRE>public abstract void <B>insert_long</B>(int&nbsp;l)</PRE><DL><DD>Inserts the given <code>int</code>  into this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the <code>int</code> to insert into this                <code>Any</code> object</DL></DD></DL><HR><A NAME="extract_longlong()"><!-- --></A><H3>extract_longlong</H3><PRE>public abstract long <B>extract_longlong</B>()                               throws <A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></PRE><DL><DD>Extracts the <code>long</code> in this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>long</code> stored in this <code>Any</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/BAD_OPERATION.html">BAD_OPERATION</A></CODE> - if this  <code>Any</code> object               contains something other than a <code>long</code> or the              <code>value</code> field has not yet been set</DL></DD></DL><HR><A NAME="insert_longlong(long)"><!-- --></A><H3>insert_longlong</H3><PRE>public abstract void <B>insert_longlong</B>(long&nbsp;l)</PRE><DL><DD>Inserts the given <code>long</code>  into this <code>Any</code> object's <code>value</code> field.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - the <code>long</code> to insert into this                <code>Any</code> object</DL>

⌨️ 快捷键说明

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