KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)MarshalInputStream.java 1.32 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 org.omg.CORBA.TypeCode JavaDoc;
10 import org.omg.CORBA.Principal JavaDoc;
11 import org.omg.CORBA.Any JavaDoc;
12
13 public interface MarshalInputStream {
14     public boolean read_boolean();
15     public char read_char();
16     public char read_wchar();
17     public byte read_octet();
18     public short read_short();
19     public short read_ushort();
20     public int read_long();
21     public int read_ulong();
22     public long read_longlong();
23     public long read_ulonglong();
24     public float read_float();
25     public double read_double();
26     public String JavaDoc read_string();
27     public String JavaDoc read_wstring();
28
29     public void read_boolean_array(boolean[] value, int offset, int length);
30     public void read_char_array(char[] value, int offset, int length);
31     public void read_wchar_array(char[] value, int offset, int length);
32     public void read_octet_array(byte[] value, int offset, int length);
33     public void read_short_array(short[] value, int offset, int length);
34     public void read_ushort_array(short[] value, int offset, int length);
35     public void read_long_array(int[] value, int offset, int length);
36     public void read_ulong_array(int[] value, int offset, int length);
37     public void read_longlong_array(long[] value, int offset, int length);
38     public void read_ulonglong_array(long[] value, int offset, int length);
39     public void read_float_array(float[] value, int offset, int length);
40     public void read_double_array(double[] value, int offset, int length);
41
42     public org.omg.CORBA.Object JavaDoc read_Object();
43     public TypeCode JavaDoc read_TypeCode();
44     public Any JavaDoc read_any();
45     public Principal JavaDoc read_Principal();
46
47     /*
48      * The methods necessary to support RMI
49      */

50     public org.omg.CORBA.Object JavaDoc read_Object(Class JavaDoc stubClass);
51     public java.io.Serializable JavaDoc read_value() throws Exception JavaDoc;
52     
53     /*
54      * Additional Methods
55      */

56     public void consumeEndian();
57
58     // Determines the current byte stream position
59
// (also handles fragmented streams)
60
public int getPosition();
61
62     // mark/reset from java.io.InputStream
63
public void mark(int readAheadLimit);
64     public void reset();
65
66     /**
67      * This must be called once before unmarshaling valuetypes or anything
68      * that uses repository IDs. The ORB's version should be set
69      * to the desired value prior to calling.
70      */

71     public void performORBVersionSpecificInit();
72
73     /**
74      * Tells the input stream to null any code set converter
75      * references, forcing it to reacquire them if it needs
76      * converters again. This is used when the server
77      * input stream needs to switch the connection's char code set
78      * converter to something different after reading the
79      * code set service context for the first time. Initially,
80      * we use ISO8859-1 to read the operation name (it can't
81      * be more than ASCII).
82      */

83     public void resetCodeSetConverters();
84 }
85
Popular Tags