1 7 15 16 package com.sun.corba.se.impl.orbutil; 17 18 import javax.rmi.CORBA.Util ; 19 import javax.rmi.PortableRemoteObject ; 20 21 import java.util.Hashtable ; 22 import java.util.Stack ; 23 import java.io.IOException ; 24 import java.util.EmptyStackException ; 25 26 import com.sun.corba.se.impl.util.Utility; 27 import com.sun.corba.se.impl.io.IIOPInputStream; 28 import com.sun.corba.se.impl.io.IIOPOutputStream; 29 import com.sun.corba.se.impl.util.RepositoryId; 30 import com.sun.corba.se.impl.util.Utility; 31 32 import org.omg.CORBA.TCKind ; 33 import org.omg.CORBA.MARSHAL ; 34 import org.omg.CORBA.CompletionStatus ; 35 import org.omg.CORBA.portable.IndirectionException ; 36 import com.sun.org.omg.SendingContext.CodeBase; 37 38 import java.security.AccessController ; 39 import java.security.PrivilegedAction ; 40 41 45 public class ValueHandlerImpl_1_3 extends com.sun.corba.se.impl.io.ValueHandlerImpl { 46 47 public ValueHandlerImpl_1_3(){ 48 super(); 49 } 50 51 public ValueHandlerImpl_1_3(boolean isInputStream) { 52 super(isInputStream); 53 } 54 55 60 public void writeValue(org.omg.CORBA.portable.OutputStream _out, java.io.Serializable value) { 61 super.writeValue(_out, value); 62 } 63 64 70 public java.io.Serializable readValue(org.omg.CORBA.portable.InputStream _in, 71 int offset, 72 java.lang.Class clazz, 73 String repositoryID, 74 org.omg.SendingContext.RunTime _sender) 75 { 76 return super.readValue(_in, offset, clazz, repositoryID, _sender); 77 } 78 79 84 public java.lang.String getRMIRepositoryID(java.lang.Class clz) { 85 return RepositoryId_1_3.createForJavaType(clz); 86 } 87 88 95 public boolean isCustomMarshaled(java.lang.Class clz) { 96 return super.isCustomMarshaled(clz); 97 } 98 99 106 public org.omg.SendingContext.RunTime getRunTimeCodeBase() { 107 return super.getRunTimeCodeBase(); 108 } 109 110 115 public java.io.Serializable writeReplace(java.io.Serializable value) { 116 return super.writeReplace(value); 117 } 118 119 122 127 128 public boolean useFullValueDescription(Class clazz, String repositoryID) 129 throws IOException 130 131 { 132 return RepositoryId_1_3.useFullValueDescription(clazz, repositoryID); 133 } 134 135 public String getClassName(String id) 136 { 137 RepositoryId_1_3 repID = RepositoryId_1_3.cache.getId(id); 138 return repID.getClassName(); 139 } 140 141 public Class getClassFromType(String id) 142 throws ClassNotFoundException 143 { 144 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 145 return repId.getClassFromType(); 146 } 147 148 public Class getAnyClassFromType(String id) 149 throws ClassNotFoundException 150 { 151 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 152 return repId.getAnyClassFromType(); 153 } 154 155 public String createForAnyType(Class cl) 156 { 157 return RepositoryId_1_3.createForAnyType(cl); 158 } 159 160 public String getDefinedInId(String id) 161 { 162 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 163 return repId.getDefinedInId(); 164 } 165 166 public String getUnqualifiedName(String id) 167 { 168 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 169 return repId.getUnqualifiedName(); 170 } 171 172 public String getSerialVersionUID(String id) 173 { 174 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 175 return repId.getSerialVersionUID(); 176 } 177 178 public boolean isAbstractBase(Class clazz) 179 { 180 return RepositoryId_1_3.isAbstractBase(clazz); 181 } 182 183 public boolean isSequence(String id) 184 { 185 RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id); 186 return repId.isSequence(); 187 } 188 189 196 protected void writeCharArray(org.omg.CORBA_2_3.portable.OutputStream out, 197 char[] array, 198 int offset, 199 int length) 200 { 201 out.write_char_array(array, offset, length); 202 } 203 204 211 protected void readCharArray(org.omg.CORBA_2_3.portable.InputStream in, 212 char[] array, 213 int offset, 214 int length) 215 { 216 in.read_char_array(array, offset, length); 217 } 218 219 protected final String getOutputStreamClassName() { 220 return "com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3"; 221 } 222 223 protected final String getInputStreamClassName() { 224 return "com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3"; 225 } 226 227 232 protected TCKind getJavaCharTCKind() { 233 return TCKind.tk_char; 234 } 235 } 236 | Popular Tags |