📄 outputstream.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:43:38 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class OutputStream</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/OutputStream.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="../../../../org/omg/CORBA/portable/ObjectImpl.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/omg/CORBA/portable/ServantObject.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="OutputStream.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.omg.CORBA.portable</FONT><BR>Class OutputStream</H2><PRE><A HREF="../../../../java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../../../../java/io/OutputStream.html">java.io.OutputStream</A> | +--<B>org.omg.CORBA.portable.OutputStream</B></PRE><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/omg/CORBA_2_3/portable/OutputStream.html">OutputStream</A></DD></DL><HR><DL><DT>public abstract class <B>OutputStream</B><DT>extends <A HREF="../../../../java/io/OutputStream.html">OutputStream</A></DL><P>OuputStream is the Java API for writing IDL types to CDR marshal streams. These methods are used by the ORB to marshal IDL types as well as to insert IDL types into Anys. The <code>_array</code> versions of the methods can be directly used to write sequences and arrays of IDL types.<P><DL><DT><B>Since: </B><DD>JDK1.2</DD></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#OutputStream()">OutputStream</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== 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>abstract <A HREF="../../../../org/omg/CORBA/portable/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#create_input_stream()">create_input_stream</A></B>()</CODE><BR> Returns an input stream with the same buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/omg/CORBA/ORB.html">ORB</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#orb()">orb</A></B>()</CODE><BR> Returns the ORB that created this OutputStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_any(org.omg.CORBA.Any)">write_any</A></B>(<A HREF="../../../../org/omg/CORBA/Any.html">Any</A> value)</CODE><BR> Writes an Any on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_boolean_array(boolean[], int, int)">write_boolean_array</A></B>(boolean[] value, int offset, int length)</CODE><BR> Writes an array of booleans on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_boolean(boolean)">write_boolean</A></B>(boolean value)</CODE><BR> Writes a boolean value to this stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_char_array(char[], int, int)">write_char_array</A></B>(char[] value, int offset, int length)</CODE><BR> Writes an array of chars on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_char(char)">write_char</A></B>(char value)</CODE><BR> Writes a char value to this stream.</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="../../../../org/omg/CORBA/portable/OutputStream.html#write_Context(org.omg.CORBA.Context, org.omg.CORBA.ContextList)">write_Context</A></B>(<A HREF="../../../../org/omg/CORBA/Context.html">Context</A> ctx, <A HREF="../../../../org/omg/CORBA/ContextList.html">ContextList</A> contexts)</CODE><BR> Writes a CORBA context on this stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_double_array(double[], int, int)">write_double_array</A></B>(double[] value, int offset, int length)</CODE><BR> Writes an array of doubles on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_double(double)">write_double</A></B>(double value)</CODE><BR> Writes a double value to this stream.</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="../../../../org/omg/CORBA/portable/OutputStream.html#write_fixed(java.math.BigDecimal)">write_fixed</A></B>(<A HREF="../../../../java/math/BigDecimal.html">BigDecimal</A> value)</CODE><BR> Writes a BigDecimal number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_float_array(float[], int, int)">write_float_array</A></B>(float[] value, int offset, int length)</CODE><BR> Writes an array of floats on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_float(float)">write_float</A></B>(float value)</CODE><BR> Writes a float value to this stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_long_array(int[], int, int)">write_long_array</A></B>(int[] value, int offset, int length)</CODE><BR> Writes an array of CORBA longs (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_long(int)">write_long</A></B>(int value)</CODE><BR> Writes a CORBA long (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_longlong_array(long[], int, int)">write_longlong_array</A></B>(long[] value, int offset, int length)</CODE><BR> Writes an array of CORBA longlongs (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_longlong(long)">write_longlong</A></B>(long value)</CODE><BR> Writes a CORBA longlong (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_Object(org.omg.CORBA.Object)">write_Object</A></B>(<A HREF="../../../../org/omg/CORBA/Object.html">Object</A> value)</CODE><BR> Writes a CORBA Object on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_octet_array(byte[], int, int)">write_octet_array</A></B>(byte[] value, int offset, int length)</CODE><BR> Writes an array of CORBA octets (bytes) on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_octet(byte)">write_octet</A></B>(byte value)</CODE><BR> Writes a CORBA octet (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_Principal(org.omg.CORBA.Principal)">write_Principal</A></B>(<A HREF="../../../../org/omg/CORBA/Principal.html">Principal</A> value)</CODE><BR> <B>Deprecated.</B> <I>Deprecated by CORBA 2.2.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_short_array(short[], int, int)">write_short_array</A></B>(short[] value, int offset, int length)</CODE><BR> Writes an array of shorts on this output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/omg/CORBA/portable/OutputStream.html#write_short(short)">write_short</A></B>(short value)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -