Merge from mainline.
[official-gcc.git] / libjava / classpath / org / omg / CORBA / DataOutputStream.java
blob5e0f021fe80f2cfafba1f743caf0f8388f11b473
1 /* DataOutputStream.java --
2 Copyright (C) 2005 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 package org.omg.CORBA;
41 import org.omg.CORBA.portable.ValueBase;
43 /**
44 * An interface for writing the custom value types. A value type, providing
45 * its own mechanism for writing the content, must implement
46 * the {@link CustomValue} that uses this interface.
48 * @see CustomValue
49 * @see CustomMarshal
51 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
53 public interface DataOutputStream
54 extends ValueBase
56 /**
57 * Write {@link Any} to the output stream.
59 * @param value a value to write.
61 void write_any(Any value);
63 /**
64 * Write boolean to the output stream.
66 * @param value a value to write.
68 void write_boolean(boolean value);
70 /**
71 * Write narrow (usually 8 bit) char to the output stream.
73 * @param value a value to write.
75 void write_char(char value);
77 /**
78 * Write wide (usually 16 bit) char to the output stream.
80 * @param value a value to write.
82 void write_wchar(char value);
84 /**
85 * Write octet (byte) to the output stream.
87 * @param value a value to write.
89 void write_octet(byte value);
91 /**
92 * Write short (16 bit signed integer) to the output stream.
94 * @param value a value to write.
96 void write_short(short value);
98 /**
99 * Write unsigned short to the output stream.
101 * @param value a value to write.
103 void write_ushort(short value);
106 * Write CORBA long (32 bits, java int) to the output stream.
108 * @param value a value to write.
110 void write_long(int value);
113 * Write unsigned CORBA long (32 bits, java int) to the output stream.
115 * @param value a value to write.
117 void write_ulong(int value);
120 * Write CORBA long long (64 bits, java long) to the output stream.
122 * @param value a value to write.
124 void write_longlong(long value);
127 * Write unsigned CORBA long long (64 bits, java long) to the output stream.
129 * @param value a value to write.
131 void write_ulonglong(long value);
134 * Write float to the output stream.
136 * @param value a value to write.
138 void write_float(float value);
141 * Write double to the output stream.
143 * @param value a value to write.
145 void write_double(double value);
148 * Write narrow (usually 8 bits per character) string to the output stream.
150 * @param value a value to write.
152 void write_string(String value);
155 * Write wide (usually 16 bits per character) string to the output stream.
157 * @param value a value to write.
159 void write_wstring(String value);
162 * Write CORBA object reference to the output stream.
164 * @param value a value to write, null should be supported.
166 void write_Object(org.omg.CORBA.Object value);
169 * Write abstract interface to the output stream.
171 * @param value a value to write, can be either CORBA object or
172 * CORBA value type.
174 void write_Abstract(java.lang.Object value);
177 * Write value type to the output stream.
179 * @param value a value to write.
181 void write_Value(java.io.Serializable value);
184 * Write typecode to the output stream.
186 * @param value a value to write.
188 void write_TypeCode(TypeCode value);
191 * Write array of Any's to the output stream.
193 * @param value a value to write.
195 void write_any_array(Any[] seq, int offset, int length);
198 * Write array of boolean's to the output stream.
200 * @param value a value to write.
202 void write_boolean_array(boolean[] seq, int offset, int length);
205 * Write array of narrow chars to the output stream.
207 * @param value a value to write.
209 void write_char_array(char[] seq, int offset, int length);
212 * Write array of wide chars to the output stream.
214 * @param value a value to write.
216 void write_wchar_array(char[] seq, int offset, int length);
219 * Write array of octets (bytes) to the output stream.
221 * @param value a value to write.
223 void write_octet_array(byte[] seq, int offset, int length);
226 * Write array of shorts (16 bit integers) to the output stream.
228 * @param value a value to write.
230 void write_short_array(short[] seq, int offset, int length);
233 * Write array of unsigned shorts (16 bit integers) to the output stream.
235 * @param value a value to write.
237 void write_ushort_array(short[] seq, int offset, int length);
240 * Write array of CORBA longs (java ints) to the output stream.
242 * @param value a value to write.
244 void write_long_array(int[] seq, int offset, int length);
247 * Write array of unsigned CORBA longs (java ints) to the output stream.
249 * @param value a value to write.
251 void write_ulong_array(int[] seq, int offset, int length);
254 * Write array of unsigned CORBA long longs (java longs)
255 * to the output stream.
257 * @param value a value to write.
259 void write_ulonglong_array(long[] seq, int offset, int length);
262 * Write arrayo fo CORBA long longs (java ints) to the output stream.
264 * @param value a value to write.
266 void write_longlong_array(long[] seq, int offset, int length);
269 * Write array of floats to the output stream.
271 * @param value a value to write.
273 void write_float_array(float[] seq, int offset, int length);
276 * Write array of doubles to the output stream.
278 * @param value a value to write.
280 void write_double_array(double[] seq, int offset, int length);