1 7 8 package com.sun.jmx.remote.internal; 9 10 import java.io.IOException ; 11 import java.io.Serializable ; 12 import java.math.BigDecimal ; 13 14 import org.omg.CORBA.Any ; 15 import org.omg.CORBA.Context ; 16 import org.omg.CORBA.NO_IMPLEMENT ; 17 import org.omg.CORBA.ORB ; 18 import org.omg.CORBA.Principal ; 19 import org.omg.CORBA.TypeCode ; 20 import org.omg.CORBA.portable.BoxedValueHelper ; 21 import org.omg.CORBA_2_3.portable.InputStream ; 22 23 public class ProxyInputStream extends org.omg.CORBA_2_3.portable.InputStream { 24 public ProxyInputStream(org.omg.CORBA.portable.InputStream 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 read_string() { 77 return in.read_string(); 78 } 79 80 public String 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 read_Object() { 133 return in.read_Object(); 134 } 135 136 public TypeCode read_TypeCode() { 137 return in.read_TypeCode(); 138 } 139 140 public Any read_any() { 141 return in.read_any(); 142 } 143 144 public Principal read_Principal() { 145 return in.read_Principal(); 146 } 147 148 public int read() throws IOException { 149 return in.read(); 150 } 151 152 public BigDecimal read_fixed() { 153 return in.read_fixed(); 154 } 155 156 public Context read_Context() { 157 return in.read_Context(); 158 } 159 160 public org.omg.CORBA.Object read_Object(java.lang.Class clz) { 161 return in.read_Object(clz); 162 } 163 164 public ORB orb() { 165 return in.orb(); 166 } 167 168 public Serializable read_value() { 169 return narrow().read_value(); 170 } 171 172 public Serializable read_value(Class clz) { 173 return narrow().read_value(clz); 174 } 175 176 public Serializable read_value(BoxedValueHelper factory) { 177 return narrow().read_value(factory); 178 } 179 180 public Serializable read_value(String rep_id) { 181 return narrow().read_value(rep_id); 182 } 183 184 public Serializable read_value(Serializable value) { 185 return narrow().read_value(value); 186 } 187 188 public Object read_abstract_interface() { 189 return narrow().read_abstract_interface(); 190 } 191 192 public Object read_abstract_interface(Class clz) { 193 return narrow().read_abstract_interface(clz); 194 } 195 196 protected org.omg.CORBA_2_3.portable.InputStream narrow() { 197 if (in instanceof org.omg.CORBA_2_3.portable.InputStream ) 198 return (org.omg.CORBA_2_3.portable.InputStream ) in; 199 throw new NO_IMPLEMENT (); 200 } 201 202 public org.omg.CORBA.portable.InputStream getProxiedInputStream() { 203 return in; 204 } 205 206 protected final org.omg.CORBA.portable.InputStream in; 207 } 208 | Popular Tags |