1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
/* * @(#)OutputStream.java 1.35 05/11/17 * * Copyright 2006 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 { /** * Returns an input stream with the same buffer. *@return an input stream with the same buffer. */ public abstract InputStream create_input_stream(); /** * Writes a boolean value to this stream. * @param value the value to be written. */ public abstract void write_boolean(boolean value); /** * Writes a char value to this stream. * @param value the value to be written. */ public abstract void write_char(char value); /** * Writes a wide char value to this stream. * @param value the value to be written. */ public abstract void write_wchar(char value); /** * Writes a CORBA octet (i.e. byte) value to this stream. * @param value the value to be written. */ public abstract void write_octet(byte value); /** * Writes a short value to this stream. * @param value the value to be written. */ public abstract void write_short(short value); /** * Writes an unsigned short value to this stream. * @param value the value to be written. */ public abstract void write_ushort(short value); /** * Writes a CORBA long (i.e. Java int) value to this stream. * @param value the value to be written. */ public abstract void write_long(int value); /** * Writes an unsigned CORBA long (i.e. Java int) value to this stream. * @param value the value to be written. */ public abstract void write_ulong(int value); /** * Writes a CORBA longlong (i.e. Java long) value to this stream. * @param value the value to be written. */ public abstract void write_longlong(long value); /** * Writes an unsigned CORBA longlong (i.e. Java long) value to this stream. * @param value the value to be written. */ public abstract void write_ulonglong(long value); /** * Writes a float value to this stream. * @param value the value to be written. */ public abstract void write_float(float value); /** * Writes a double value to this stream. * @param value the value to be written. */ public abstract void write_double(double value); /** * Writes a string value to this stream. * @param value the value to be written. */ public abstract void write_string(String value); /** * Writes a wide string value to this stream. * @param value the value to be written. */ public abstract void write_wstring(String value); /** * Writes an array of booleans on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_boolean_array(boolean[] value, int offset, int length); /** * Writes an array of chars on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_char_array(char[] value, int offset, int length); /** * Writes an array of wide chars on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_wchar_array(char[] value, int offset, int length); /** * Writes an array of CORBA octets (bytes) on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_octet_array(byte[] value, int offset, int length); /** * Writes an array of shorts on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_short_array(short[] value, int offset, int length); /** * Writes an array of unsigned shorts on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_ushort_array(short[] value, int offset, int length); /** * Writes an array of CORBA longs (i.e. Java ints) on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_long_array(int[] value, int offset, int length); /** * Writes an array of unsigned CORBA longs (i.e. Java ints) on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_ulong_array(int[] value, int offset, int length); /** * Writes an array of CORBA longlongs (i.e. Java longs) on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_longlong_array(long[] value, int offset, int length); /** * Writes an array of unsigned CORBA longlongs (i.e. Java ints) on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_ulonglong_array(long[] value, int offset, int length); /** * Writes an array of floats on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_float_array(float[] value, int offset, int length); /** * Writes an array of doubles on this output stream. * @param value the array to be written. * @param offset offset on the stream. * @param length length of buffer to write. */ public abstract void write_double_array(double[] value, int offset, int length); /** * Writes a CORBA Object on this output stream. * @param value the value to be written. */ public abstract void write_Object(org.omg.CORBA.Object value); /** * Writes a TypeCode on this output stream. * @param value the value to be written. */ public abstract void write_TypeCode(TypeCode value); /** * Writes an Any on this output stream. * @param value the value to be written. */ public abstract void write_any(Any value); /** * Writes a Principle on this output stream. * @param value the value to be written. * @deprecated Deprecated by CORBA 2.2. */ @Deprecated public void write_Principal(Principal value) { throw new org.omg.CORBA.NO_IMPLEMENT(); } /** * Writes an integer (length of arrays) onto this stream. * @param b the value to be written. * @throws java.io.IOException if there is an input/output error * @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(); } /** * Writes a BigDecimal number. * @param value a BidDecimal--value to be written. */ public void write_fixed(java.math.BigDecimal value) { throw new org.omg.CORBA.NO_IMPLEMENT(); } /** * Writes a CORBA context on this stream. The * Context is marshaled as a sequence of strings. * Only those Context values specified in the contexts * parameter are actually written. * @param ctx a CORBA context * @param contexts a <code>ContextList</code> object containing the list of contexts * to be written * @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(); } /** * Returns the ORB that created this OutputStream. * @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(); } }