1 7 package com.sun.corba.se.impl.encoding; 8 9 import java.io.IOException ; 10 11 import org.omg.CORBA.TypeCode ; 12 import org.omg.CORBA.Principal ; 13 import org.omg.CORBA.Any ; 14 15 import org.omg.CORBA.portable.InputStream ; 16 17 public interface MarshalOutputStream { 18 19 public InputStream create_input_stream(); 20 21 public void write_boolean(boolean value); 22 public void write_char(char value); 23 public void write_wchar(char value); 24 public void write_octet(byte value); 25 public void write_short(short value); 26 public void write_ushort(short value); 27 public void write_long(int value); 28 public void write_ulong(int value); 29 public void write_longlong(long value); 30 public void write_ulonglong(long value); 31 public void write_float(float value); 32 public void write_double(double value); 33 public void write_string(String value); 34 public void write_wstring(String value); 35 36 public void write_boolean_array(boolean[] value, int offset, int length); 37 public void write_char_array(char[] value, int offset, int length); 38 public void write_wchar_array(char[] value, int offset, int length); 39 public void write_octet_array(byte[] value, int offset, int length); 40 public void write_short_array(short[] value, int offset, int length); 41 public void write_ushort_array(short[] value, int offset, int length); 42 public void write_long_array(int[] value, int offset, int length); 43 public void write_ulong_array(int[] value, int offset, int length); 44 public void write_longlong_array(long[] value, int offset, int length); 45 public void write_ulonglong_array(long[] value, int offset, int length); 46 public void write_float_array(float[] value, int offset, int length); 47 public void write_double_array(double[] value, int offset, int length); 48 49 public void write_Object(org.omg.CORBA.Object value); 50 public void write_TypeCode(TypeCode value); 51 public void write_any(Any value); 52 public void write_Principal(Principal value); 53 54 55 58 public void write_value(java.io.Serializable value); 59 public void start_block(); 60 public void end_block(); 61 62 65 66 public void putEndian(); 67 public void writeTo(java.io.OutputStream s) 68 throws IOException ; 69 70 public byte[] toByteArray(); 71 } 72 | Popular Tags |