Tue, 25 Mar 2008 14:42:28 -0700
6627817: Remove ^M characters in all files (Makefiles too)
Summary: Some files included the use of the ^M character, which has been deleted
Reviewed-by: xdono
duke@1 | 1 | /* |
duke@1 | 2 | * Copyright 1998-1999 Sun Microsystems, Inc. All Rights Reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
duke@1 | 7 | * published by the Free Software Foundation. Sun designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
duke@1 | 9 | * by Sun in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
duke@1 | 21 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@1 | 22 | * CA 95054 USA or visit www.sun.com if you need additional information or |
duke@1 | 23 | * have any questions. |
duke@1 | 24 | */ |
duke@1 | 25 | |
duke@1 | 26 | package org.omg.CORBA; |
duke@1 | 27 | |
duke@1 | 28 | /** Defines the methods used to write primitive data types to output streams |
duke@1 | 29 | * for marshalling custom value types. This interface is used by user |
duke@1 | 30 | * written custom marshalling code for custom value types. |
duke@1 | 31 | * @see org.omg.CORBA.DataInputStream |
duke@1 | 32 | * @see org.omg.CORBA.CustomMarshal |
duke@1 | 33 | */ |
duke@1 | 34 | public interface DataOutputStream extends org.omg.CORBA.portable.ValueBase |
duke@1 | 35 | { |
duke@1 | 36 | /** |
duke@1 | 37 | * Writes the Any value to the output stream. |
duke@1 | 38 | * @param value The value to be written. |
duke@1 | 39 | */ |
duke@1 | 40 | void write_any (org.omg.CORBA.Any value); |
duke@1 | 41 | |
duke@1 | 42 | /** |
duke@1 | 43 | * Writes the boolean value to the output stream. |
duke@1 | 44 | * @param value The value to be written. |
duke@1 | 45 | */ |
duke@1 | 46 | void write_boolean (boolean value); |
duke@1 | 47 | |
duke@1 | 48 | /** |
duke@1 | 49 | * Writes the IDL character value to the output stream. |
duke@1 | 50 | * @param value The value to be written. |
duke@1 | 51 | */ |
duke@1 | 52 | void write_char (char value); |
duke@1 | 53 | |
duke@1 | 54 | /** |
duke@1 | 55 | * Writes the IDL wide character value to the output stream. |
duke@1 | 56 | * @param value The value to be written. |
duke@1 | 57 | */ |
duke@1 | 58 | void write_wchar (char value); |
duke@1 | 59 | |
duke@1 | 60 | /** |
duke@1 | 61 | * Writes the IDL octet value (represented as a Java byte) to the output stream. |
duke@1 | 62 | * @param value The value to be written. |
duke@1 | 63 | */ |
duke@1 | 64 | void write_octet (byte value); |
duke@1 | 65 | |
duke@1 | 66 | /** |
duke@1 | 67 | * Writes the IDL short value to the output stream. |
duke@1 | 68 | * @param value The value to be written. |
duke@1 | 69 | */ |
duke@1 | 70 | void write_short (short value); |
duke@1 | 71 | |
duke@1 | 72 | /** |
duke@1 | 73 | * Writes the IDL unsigned short value (represented as a Java short |
duke@1 | 74 | * value) to the output stream. |
duke@1 | 75 | * @param value The value to be written. |
duke@1 | 76 | */ |
duke@1 | 77 | void write_ushort (short value); |
duke@1 | 78 | |
duke@1 | 79 | /** |
duke@1 | 80 | * Writes the IDL long value (represented as a Java int) to the output stream. |
duke@1 | 81 | * @param value The value to be written. |
duke@1 | 82 | */ |
duke@1 | 83 | void write_long (int value); |
duke@1 | 84 | |
duke@1 | 85 | /** |
duke@1 | 86 | * Writes the IDL unsigned long value (represented as a Java int) to the output stream. |
duke@1 | 87 | * @param value The value to be written. |
duke@1 | 88 | */ |
duke@1 | 89 | void write_ulong (int value); |
duke@1 | 90 | |
duke@1 | 91 | /** |
duke@1 | 92 | * Writes the IDL long long value (represented as a Java long) to the output stream. |
duke@1 | 93 | * @param value The value to be written. |
duke@1 | 94 | */ |
duke@1 | 95 | void write_longlong (long value); |
duke@1 | 96 | |
duke@1 | 97 | /** |
duke@1 | 98 | * Writes the IDL unsigned long long value (represented as a Java long) |
duke@1 | 99 | * to the output stream. |
duke@1 | 100 | * @param value The value to be written. |
duke@1 | 101 | */ |
duke@1 | 102 | void write_ulonglong (long value); |
duke@1 | 103 | |
duke@1 | 104 | /** |
duke@1 | 105 | * Writes the IDL float value to the output stream. |
duke@1 | 106 | * @param value The value to be written. |
duke@1 | 107 | */ |
duke@1 | 108 | void write_float (float value); |
duke@1 | 109 | |
duke@1 | 110 | /** |
duke@1 | 111 | * Writes the IDL double value to the output stream. |
duke@1 | 112 | * @param value The value to be written. |
duke@1 | 113 | */ |
duke@1 | 114 | void write_double (double value); |
duke@1 | 115 | |
duke@1 | 116 | // write_longdouble not supported by IDL/Java mapping |
duke@1 | 117 | |
duke@1 | 118 | /** |
duke@1 | 119 | * Writes the IDL string value to the output stream. |
duke@1 | 120 | * @param value The value to be written. |
duke@1 | 121 | */ |
duke@1 | 122 | void write_string (String value); |
duke@1 | 123 | |
duke@1 | 124 | /** |
duke@1 | 125 | * Writes the IDL wide string value (represented as a Java String) to the output stream. |
duke@1 | 126 | * @param value The value to be written. |
duke@1 | 127 | */ |
duke@1 | 128 | void write_wstring (String value); |
duke@1 | 129 | |
duke@1 | 130 | /** |
duke@1 | 131 | * Writes the IDL CORBA::Object value to the output stream. |
duke@1 | 132 | * @param value The value to be written. |
duke@1 | 133 | */ |
duke@1 | 134 | void write_Object (org.omg.CORBA.Object value); |
duke@1 | 135 | |
duke@1 | 136 | /** |
duke@1 | 137 | * Writes the IDL Abstract interface type to the output stream. |
duke@1 | 138 | * @param value The value to be written. |
duke@1 | 139 | */ |
duke@1 | 140 | void write_Abstract (java.lang.Object value); |
duke@1 | 141 | |
duke@1 | 142 | /** |
duke@1 | 143 | * Writes the IDL value type value to the output stream. |
duke@1 | 144 | * @param value The value to be written. |
duke@1 | 145 | */ |
duke@1 | 146 | void write_Value (java.io.Serializable value); |
duke@1 | 147 | |
duke@1 | 148 | /** |
duke@1 | 149 | * Writes the typecode to the output stream. |
duke@1 | 150 | * @param value The value to be written. |
duke@1 | 151 | */ |
duke@1 | 152 | void write_TypeCode (org.omg.CORBA.TypeCode value); |
duke@1 | 153 | |
duke@1 | 154 | /** |
duke@1 | 155 | * Writes the array of IDL Anys from offset for length elements to the |
duke@1 | 156 | * output stream. |
duke@1 | 157 | * @param seq The array to be written. |
duke@1 | 158 | * @param offset The index into seq of the first element to write to the |
duke@1 | 159 | * output stream. |
duke@1 | 160 | * @param length The number of elements to write to the output stream. |
duke@1 | 161 | */ |
duke@1 | 162 | void write_any_array (org.omg.CORBA.Any[] seq, int offset, int length); |
duke@1 | 163 | |
duke@1 | 164 | /** |
duke@1 | 165 | * Writes the array of IDL booleans from offset for length elements to the |
duke@1 | 166 | * output stream. |
duke@1 | 167 | * @param seq The array to be written. |
duke@1 | 168 | * @param offset The index into seq of the first element to write to the |
duke@1 | 169 | * output stream. |
duke@1 | 170 | * @param length The number of elements to write to the output stream. |
duke@1 | 171 | */ |
duke@1 | 172 | void write_boolean_array (boolean[] seq, int offset, int length); |
duke@1 | 173 | |
duke@1 | 174 | /** |
duke@1 | 175 | * Writes the array of IDL characters from offset for length elements to the |
duke@1 | 176 | * output stream. |
duke@1 | 177 | * @param seq The array to be written. |
duke@1 | 178 | * @param offset The index into seq of the first element to write to the |
duke@1 | 179 | * output stream. |
duke@1 | 180 | * @param length The number of elements to write to the output stream. |
duke@1 | 181 | */ |
duke@1 | 182 | void write_char_array (char[] seq, int offset, int length); |
duke@1 | 183 | |
duke@1 | 184 | /** |
duke@1 | 185 | * Writes the array of IDL wide characters from offset for length elements to the |
duke@1 | 186 | * output stream. |
duke@1 | 187 | * @param seq The array to be written. |
duke@1 | 188 | * @param offset The index into seq of the first element to write to the |
duke@1 | 189 | * output stream. |
duke@1 | 190 | * @param length The number of elements to write to the output stream. |
duke@1 | 191 | */ |
duke@1 | 192 | void write_wchar_array (char[] seq, int offset, int length); |
duke@1 | 193 | |
duke@1 | 194 | /** |
duke@1 | 195 | * Writes the array of IDL octets from offset for length elements to the |
duke@1 | 196 | * output stream. |
duke@1 | 197 | * @param seq The array to be written. |
duke@1 | 198 | * @param offset The index into seq of the first element to write to the |
duke@1 | 199 | * output stream. |
duke@1 | 200 | * @param length The number of elements to write to the output stream. |
duke@1 | 201 | */ |
duke@1 | 202 | void write_octet_array (byte[] seq, int offset, int length); |
duke@1 | 203 | |
duke@1 | 204 | /** |
duke@1 | 205 | * Writes the array of IDL shorts from offset for length elements to the |
duke@1 | 206 | * output stream. |
duke@1 | 207 | * @param seq The array to be written. |
duke@1 | 208 | * @param offset The index into seq of the first element to write to the |
duke@1 | 209 | * output stream. |
duke@1 | 210 | * @param length The number of elements to write to the output stream. |
duke@1 | 211 | */ |
duke@1 | 212 | void write_short_array (short[] seq, int offset, int length); |
duke@1 | 213 | |
duke@1 | 214 | /** |
duke@1 | 215 | * Writes the array of IDL unsigned shorts (represented as Java shorts) |
duke@1 | 216 | * from offset for length elements to the output stream. |
duke@1 | 217 | * @param seq The array to be written. |
duke@1 | 218 | * @param offset The index into seq of the first element to write to the |
duke@1 | 219 | * output stream. |
duke@1 | 220 | * @param length The number of elements to write to the output stream. |
duke@1 | 221 | */ |
duke@1 | 222 | void write_ushort_array (short[] seq, int offset, int length); |
duke@1 | 223 | |
duke@1 | 224 | /** |
duke@1 | 225 | * Writes the array of IDL longs from offset for length elements to the |
duke@1 | 226 | * output stream. |
duke@1 | 227 | * @param seq The array to be written. |
duke@1 | 228 | * @param offset The index into seq of the first element to write to the |
duke@1 | 229 | * output stream. |
duke@1 | 230 | * @param length The number of elements to write to the output stream. |
duke@1 | 231 | */ |
duke@1 | 232 | void write_long_array (int[] seq, int offset, int length); |
duke@1 | 233 | |
duke@1 | 234 | /** |
duke@1 | 235 | * Writes the array of IDL unsigned longs (represented as Java ints) |
duke@1 | 236 | * from offset for length elements to the output stream. |
duke@1 | 237 | * @param seq The array to be written. |
duke@1 | 238 | * @param offset The index into seq of the first element to write to the |
duke@1 | 239 | * output stream. |
duke@1 | 240 | * @param length The number of elements to write to the output stream. |
duke@1 | 241 | */ |
duke@1 | 242 | void write_ulong_array (int[] seq, int offset, int length); |
duke@1 | 243 | |
duke@1 | 244 | /** |
duke@1 | 245 | * Writes the array of IDL unsigned long longs (represented as Java longs) |
duke@1 | 246 | * from offset for length elements to the output stream. |
duke@1 | 247 | * @param seq The array to be written. |
duke@1 | 248 | * @param offset The index into seq of the first element to write to the |
duke@1 | 249 | * output stream. |
duke@1 | 250 | * @param length The number of elements to write to the output stream. |
duke@1 | 251 | */ |
duke@1 | 252 | void write_ulonglong_array (long[] seq, int offset, int length); |
duke@1 | 253 | |
duke@1 | 254 | /** |
duke@1 | 255 | * Writes the array of IDL long longs from offset for length elements to the |
duke@1 | 256 | * output stream. |
duke@1 | 257 | * @param seq The array to be written. |
duke@1 | 258 | * @param offset The index into seq of the first element to write to the |
duke@1 | 259 | * output stream. |
duke@1 | 260 | * @param length The number of elements to write to the output stream. |
duke@1 | 261 | */ |
duke@1 | 262 | void write_longlong_array (long[] seq, int offset, int length); |
duke@1 | 263 | |
duke@1 | 264 | /** |
duke@1 | 265 | * Writes the array of IDL floats from offset for length elements to the |
duke@1 | 266 | * output stream. |
duke@1 | 267 | * @param seq The array to be written. |
duke@1 | 268 | * @param offset The index into seq of the first element to write to the |
duke@1 | 269 | * output stream. |
duke@1 | 270 | * @param length The number of elements to write to the output stream. |
duke@1 | 271 | */ |
duke@1 | 272 | void write_float_array (float[] seq, int offset, int length); |
duke@1 | 273 | |
duke@1 | 274 | /** |
duke@1 | 275 | * Writes the array of IDL doubles from offset for length elements to the |
duke@1 | 276 | * output stream. |
duke@1 | 277 | * @param seq The array to be written. |
duke@1 | 278 | * @param offset The index into seq of the first element to write to the |
duke@1 | 279 | * output stream. |
duke@1 | 280 | * @param length The number of elements to write to the output stream. |
duke@1 | 281 | */ |
duke@1 | 282 | void write_double_array (double[] seq, int offset, int length); |
duke@1 | 283 | } // interface DataOutputStream |