0N/A/*
157N/A * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
157N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
157N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
157N/A * or visit www.oracle.com if you need additional information or have any
157N/A * questions.
0N/A */
0N/A
0N/Apackage org.omg.CORBA;
0N/A
0N/A/** Defines the methods used to write primitive data types to output streams
0N/A* for marshalling custom value types. This interface is used by user
0N/A* written custom marshalling code for custom value types.
0N/A* @see org.omg.CORBA.DataInputStream
0N/A* @see org.omg.CORBA.CustomMarshal
0N/A*/
0N/Apublic interface DataOutputStream extends org.omg.CORBA.portable.ValueBase
0N/A{
0N/A /**
0N/A * Writes the Any value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_any (org.omg.CORBA.Any value);
0N/A
0N/A /**
0N/A * Writes the boolean value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_boolean (boolean value);
0N/A
0N/A /**
0N/A * Writes the IDL character value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_char (char value);
0N/A
0N/A /**
0N/A * Writes the IDL wide character value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_wchar (char value);
0N/A
0N/A /**
0N/A * Writes the IDL octet value (represented as a Java byte) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_octet (byte value);
0N/A
0N/A /**
0N/A * Writes the IDL short value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_short (short value);
0N/A
0N/A /**
0N/A * Writes the IDL unsigned short value (represented as a Java short
0N/A * value) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_ushort (short value);
0N/A
0N/A /**
0N/A * Writes the IDL long value (represented as a Java int) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_long (int value);
0N/A
0N/A /**
0N/A * Writes the IDL unsigned long value (represented as a Java int) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_ulong (int value);
0N/A
0N/A /**
0N/A * Writes the IDL long long value (represented as a Java long) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_longlong (long value);
0N/A
0N/A /**
0N/A * Writes the IDL unsigned long long value (represented as a Java long)
0N/A * to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_ulonglong (long value);
0N/A
0N/A /**
0N/A * Writes the IDL float value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_float (float value);
0N/A
0N/A /**
0N/A * Writes the IDL double value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_double (double value);
0N/A
0N/A // write_longdouble not supported by IDL/Java mapping
0N/A
0N/A /**
0N/A * Writes the IDL string value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_string (String value);
0N/A
0N/A /**
0N/A * Writes the IDL wide string value (represented as a Java String) to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_wstring (String value);
0N/A
0N/A /**
0N/A * Writes the IDL CORBA::Object value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_Object (org.omg.CORBA.Object value);
0N/A
0N/A /**
0N/A * Writes the IDL Abstract interface type to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_Abstract (java.lang.Object value);
0N/A
0N/A /**
0N/A * Writes the IDL value type value to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_Value (java.io.Serializable value);
0N/A
0N/A /**
0N/A * Writes the typecode to the output stream.
0N/A * @param value The value to be written.
0N/A */
0N/A void write_TypeCode (org.omg.CORBA.TypeCode value);
0N/A
0N/A /**
0N/A * Writes the array of IDL Anys from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_any_array (org.omg.CORBA.Any[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL booleans from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_boolean_array (boolean[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL characters from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_char_array (char[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL wide characters from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_wchar_array (char[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL octets from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_octet_array (byte[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL shorts from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_short_array (short[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL unsigned shorts (represented as Java shorts)
0N/A * from offset for length elements to the output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_ushort_array (short[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL longs from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_long_array (int[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL unsigned longs (represented as Java ints)
0N/A * from offset for length elements to the output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_ulong_array (int[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL unsigned long longs (represented as Java longs)
0N/A * from offset for length elements to the output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_ulonglong_array (long[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL long longs from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_longlong_array (long[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL floats from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_float_array (float[] seq, int offset, int length);
0N/A
0N/A /**
0N/A * Writes the array of IDL doubles from offset for length elements to the
0N/A * output stream.
0N/A * @param seq The array to be written.
0N/A * @param offset The index into seq of the first element to write to the
0N/A * output stream.
0N/A * @param length The number of elements to write to the output stream.
0N/A */
0N/A void write_double_array (double[] seq, int offset, int length);
0N/A} // interface DataOutputStream