- /*
- * @(#)OutputStream.java 1.22 01/11/29
- *
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
- package org.omg.CORBA.portable;
-
- import org.omg.CORBA.TypeCode;
- import org.omg.CORBA.Principal;
- import org.omg.CORBA.Any;
-
- /**
- * 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.
- *
- * @version 1.13, 04/22/98
- * @since JDK1.2
- */
-
-
- public abstract class OutputStream extends java.io.OutputStream
- {
- public abstract InputStream create_input_stream();
-
- public abstract void write_boolean(boolean value);
- public abstract void write_char(char value);
- public abstract void write_wchar(char value);
- public abstract void write_octet(byte value);
- public abstract void write_short(short value);
- public abstract void write_ushort(short value);
- public abstract void write_long(int value);
- public abstract void write_ulong(int value);
- public abstract void write_longlong(long value);
- public abstract void write_ulonglong(long value);
- public abstract void write_float(float value);
- public abstract void write_double(double value);
- public abstract void write_string(String value);
- public abstract void write_wstring(String value);
-
- public abstract void write_boolean_array(boolean[] value, int offset,
- int length);
- public abstract void write_char_array(char[] value, int offset,
- int length);
- public abstract void write_wchar_array(char[] value, int offset,
- int length);
- public abstract void write_octet_array(byte[] value, int offset,
- int length);
- public abstract void write_short_array(short[] value, int offset,
- int length);
- public abstract void write_ushort_array(short[] value, int offset,
- int length);
- public abstract void write_long_array(int[] value, int offset,
- int length);
- public abstract void write_ulong_array(int[] value, int offset,
- int length);
- public abstract void write_longlong_array(long[] value, int offset,
- int length);
- public abstract void write_ulonglong_array(long[] value, int offset,
- int length);
- public abstract void write_float_array(float[] value, int offset,
- int length);
- public abstract void write_double_array(double[] value, int offset,
- int length);
-
- public abstract void write_Object(org.omg.CORBA.Object value);
- public abstract void write_TypeCode(TypeCode value);
- public abstract void write_any(Any value);
-
- /**
- * @deprecated Deprecated by CORBA 2.2.
- */
- public abstract void write_Principal(Principal value);
-
- /**
- * @see <a href="package-summary.html#unimpl"><code>portable</code>
- * package comments for unimplemented features</a>
- */
- public void write(int b) throws java.io.IOException {
- throw new org.omg.CORBA.NO_IMPLEMENT();
- }
-
- /**
- * @see <a href="package-summary.html#unimpl"><code>portable</code>
- * package comments for unimplemented features</a>
- */
- public void write_fixed(java.math.BigDecimal value) {
- throw new org.omg.CORBA.NO_IMPLEMENT();
- }
-
- /**
- * @see <a href="package-summary.html#unimpl"><code>portable</code>
- * package comments for unimplemented features</a>
- */
- public void write_Context(org.omg.CORBA.Context ctx,
- org.omg.CORBA.ContextList contexts) {
- throw new org.omg.CORBA.NO_IMPLEMENT();
- }
-
- /**
- * Return the ORB that created this OutputStream
- * @see <a href="package-summary.html#unimpl"><code>portable</code>
- * package comments for unimplemented features</a>
- */
- public org.omg.CORBA.ORB orb() {
- throw new org.omg.CORBA.NO_IMPLEMENT();
- }
- }