KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > remote > internal > ProxyInputStream


1 /*
2  * @(#)ProxyInputStream.java 1.3 04/01/26
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.jmx.remote.internal;
9
10 import java.io.IOException JavaDoc;
11 import java.io.Serializable JavaDoc;
12 import java.math.BigDecimal JavaDoc;
13
14 import org.omg.CORBA.Any JavaDoc;
15 import org.omg.CORBA.Context JavaDoc;
16 import org.omg.CORBA.NO_IMPLEMENT JavaDoc;
17 import org.omg.CORBA.ORB JavaDoc;
18 import org.omg.CORBA.Principal JavaDoc;
19 import org.omg.CORBA.TypeCode JavaDoc;
20 import org.omg.CORBA.portable.BoxedValueHelper JavaDoc;
21 import org.omg.CORBA_2_3.portable.InputStream JavaDoc;
22
23 public class ProxyInputStream extends org.omg.CORBA_2_3.portable.InputStream JavaDoc {
24     public ProxyInputStream(org.omg.CORBA.portable.InputStream JavaDoc in) {
25     this.in = in;
26     }
27
28     public boolean read_boolean() {
29     return in.read_boolean();
30     }
31
32     public char read_char() {
33     return in.read_char();
34     }
35
36     public char read_wchar() {
37     return in.read_wchar();
38     }
39
40     public byte read_octet() {
41     return in.read_octet();
42     }
43
44     public short read_short() {
45     return in.read_short();
46     }
47
48     public short read_ushort() {
49     return in.read_ushort();
50     }
51
52     public int read_long() {
53     return in.read_long();
54     }
55
56     public int read_ulong() {
57     return in.read_ulong();
58     }
59
60     public long read_longlong() {
61     return in.read_longlong();
62     }
63
64     public long read_ulonglong() {
65     return in.read_ulonglong();
66     }
67
68     public float read_float() {
69     return in.read_float();
70     }
71
72     public double read_double() {
73     return in.read_double();
74     }
75
76     public String JavaDoc read_string() {
77     return in.read_string();
78     }
79
80     public String JavaDoc read_wstring() {
81     return in.read_wstring();
82     }
83
84     public void read_boolean_array(boolean[] value, int offset, int length) {
85     in.read_boolean_array(value, offset, length);
86     }
87
88     public void read_char_array(char[] value, int offset, int length) {
89     in.read_char_array(value, offset, length);
90     }
91
92     public void read_wchar_array(char[] value, int offset, int length) {
93     in.read_wchar_array(value, offset, length);
94     }
95
96     public void read_octet_array(byte[] value, int offset, int length) {
97     in.read_octet_array(value, offset, length);
98     }
99
100     public void read_short_array(short[] value, int offset, int length) {
101     in.read_short_array(value, offset, length);
102     }
103
104     public void read_ushort_array(short[] value, int offset, int length) {
105     in.read_ushort_array(value, offset, length);
106     }
107
108     public void read_long_array(int[] value, int offset, int length) {
109     in.read_long_array(value, offset, length);
110     }
111
112     public void read_ulong_array(int[] value, int offset, int length) {
113     in.read_ulong_array(value, offset, length);
114     }
115
116     public void read_longlong_array(long[] value, int offset, int length) {
117     in.read_longlong_array(value, offset, length);
118     }
119
120     public void read_ulonglong_array(long[] value, int offset, int length) {
121     in.read_ulonglong_array(value, offset, length);
122     }
123
124     public void read_float_array(float[] value, int offset, int length) {
125     in.read_float_array(value, offset, length);
126     }
127
128     public void read_double_array(double[] value, int offset, int length) {
129     in.read_double_array(value, offset, length);
130     }
131
132     public org.omg.CORBA.Object JavaDoc read_Object() {
133     return in.read_Object();
134     }
135
136     public TypeCode JavaDoc read_TypeCode() {
137     return in.read_TypeCode();
138     }
139
140     public Any JavaDoc read_any() {
141     return in.read_any();
142     }
143
144     public Principal JavaDoc read_Principal() {
145     return in.read_Principal();
146     }
147
148     public int read() throws IOException JavaDoc {
149     return in.read();
150     }
151
152     public BigDecimal JavaDoc read_fixed() {
153     return in.read_fixed();
154     }
155
156     public Context JavaDoc read_Context() {
157     return in.read_Context();
158     }
159
160     public org.omg.CORBA.Object JavaDoc read_Object(java.lang.Class JavaDoc clz) {
161     return in.read_Object(clz);
162     }
163
164     public ORB JavaDoc orb() {
165     return in.orb();
166     }
167
168     public Serializable JavaDoc read_value() {
169     return narrow().read_value();
170     }
171
172     public Serializable JavaDoc read_value(Class JavaDoc clz) {
173     return narrow().read_value(clz);
174     }
175  
176     public Serializable JavaDoc read_value(BoxedValueHelper JavaDoc factory) {
177     return narrow().read_value(factory);
178     }
179
180     public Serializable JavaDoc read_value(String JavaDoc rep_id) {
181     return narrow().read_value(rep_id);
182     }
183
184     public Serializable JavaDoc read_value(Serializable JavaDoc value) {
185     return narrow().read_value(value);
186     }
187
188     public Object JavaDoc read_abstract_interface() {
189     return narrow().read_abstract_interface();
190     }
191  
192     public Object JavaDoc read_abstract_interface(Class JavaDoc clz) {
193     return narrow().read_abstract_interface(clz);
194     }
195
196     protected org.omg.CORBA_2_3.portable.InputStream JavaDoc narrow() {
197     if (in instanceof org.omg.CORBA_2_3.portable.InputStream JavaDoc)
198         return (org.omg.CORBA_2_3.portable.InputStream JavaDoc) in;
199     throw new NO_IMPLEMENT JavaDoc();
200     }
201
202     public org.omg.CORBA.portable.InputStream JavaDoc getProxiedInputStream() {
203     return in;
204     }
205
206     protected final org.omg.CORBA.portable.InputStream JavaDoc in;
207 }
208
Popular Tags