KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > encoding > MarshalOutputStream


1 /*
2  * @(#)MarshalOutputStream.java 1.27 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.corba.se.impl.encoding;
8
9 import java.io.IOException JavaDoc;
10
11 import org.omg.CORBA.TypeCode JavaDoc;
12 import org.omg.CORBA.Principal JavaDoc;
13 import org.omg.CORBA.Any JavaDoc;
14
15 import org.omg.CORBA.portable.InputStream JavaDoc;
16
17 public interface MarshalOutputStream {
18     
19     public InputStream JavaDoc 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 JavaDoc value);
34     public void write_wstring(String JavaDoc 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 JavaDoc value);
50     public void write_TypeCode(TypeCode JavaDoc value);
51     public void write_any(Any JavaDoc value);
52     public void write_Principal(Principal JavaDoc value);
53
54
55     /*
56      * The methods necessary to support RMI
57      */

58     public void write_value(java.io.Serializable JavaDoc value);
59     public void start_block();
60     public void end_block();
61
62     /*
63      * Additional Methods
64      */

65
66     public void putEndian();
67     public void writeTo(java.io.OutputStream JavaDoc s)
68     throws IOException JavaDoc;
69
70     public byte[] toByteArray();
71 }
72
Popular Tags