FileDocCategorySizeDatePackage
ValueHandlerImpl_1_3.javaAPI DocJava SE 5 API7624Fri Aug 26 14:54:30 BST 2005com.sun.corba.se.impl.orbutil

ValueHandlerImpl_1_3

public class ValueHandlerImpl_1_3 extends com.sun.corba.se.impl.io.ValueHandlerImpl
This class overrides behavior of our current ValueHandlerImpl to provide backwards compatibility with JDK 1.3.0.

Fields Summary
Constructors Summary
public ValueHandlerImpl_1_3()

	super();
    
public ValueHandlerImpl_1_3(boolean isInputStream)

	super(isInputStream);
    
Methods Summary
public java.lang.StringcreateForAnyType(java.lang.Class cl)

        return RepositoryId_1_3.createForAnyType(cl);
     
public java.lang.ClassgetAnyClassFromType(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.getAnyClassFromType();
     
public java.lang.ClassgetClassFromType(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.getClassFromType();
     
public java.lang.StringgetClassName(java.lang.String id)

        RepositoryId_1_3 repID = RepositoryId_1_3.cache.getId(id);
        return repID.getClassName();
     
public java.lang.StringgetDefinedInId(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.getDefinedInId();
     
protected final java.lang.StringgetInputStreamClassName()

        return "com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3";
    
protected org.omg.CORBA.TCKindgetJavaCharTCKind()
Our JDK 1.3 and JDK 1.3.1 behavior subclasses override this. The correct behavior is for a Java char to map to a CORBA wchar, but our older code mapped it to a CORBA char.

        return TCKind.tk_char;
    
protected final java.lang.StringgetOutputStreamClassName()

        return "com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3";
    
public java.lang.StringgetRMIRepositoryID(java.lang.Class clz)
Returns the repository ID for the given RMI value Class.

param
clz The class to return a repository ID for.
return
the repository ID of the Class.

	return RepositoryId_1_3.createForJavaType(clz);
    
public org.omg.SendingContext.RunTimegetRunTimeCodeBase()
Returns the CodeBase for this ValueHandler. This is used by the ORB runtime. The server sends the service context containing the IOR for this CodeBase on the first GIOP reply. The clients do the same on the first GIOP request.

return
the SendingContext.CodeBase of this ValueHandler.

	return super.getRunTimeCodeBase();
    
public java.lang.StringgetSerialVersionUID(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.getSerialVersionUID();
     
public java.lang.StringgetUnqualifiedName(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.getUnqualifiedName();
     
public booleanisAbstractBase(java.lang.Class clazz)

        return RepositoryId_1_3.isAbstractBase(clazz);
     
public booleanisCustomMarshaled(java.lang.Class clz)
Indicates whether the given Class performs custom or default marshaling.

param
clz The class to test for custom marshaling.
return
True if the class performs custom marshaling, false if it does not.

	return super.isCustomMarshaled(clz);
    
public booleanisSequence(java.lang.String id)

        RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
        return repId.isSequence();
     
protected voidreadCharArray(org.omg.CORBA_2_3.portable.InputStream in, char[] array, int offset, int length)
Preserves the incorrect 1.3 behavior which truncates Java chars in arrays to 8-bit CORBA chars. Bug 4367783. This enables us to continue interoperating with our legacy ORBs. If this goes into Ladybird, then Ladybird and Kestrel will interoperate as long as people don't use chars greater than 8-bits.

        in.read_char_array(array, offset, length);
    
public java.io.SerializablereadValue(org.omg.CORBA.portable.InputStream _in, int offset, java.lang.Class clazz, java.lang.String repositoryID, org.omg.SendingContext.RunTime _sender)
Reads a value from the stream using java semantics.

param
in The stream to read the value from
param
clazz The type of the value to be read in
param
sender The sending context runtime

	return super.readValue(_in, offset, clazz, repositoryID, _sender);
    
public booleanuseFullValueDescription(java.lang.Class clazz, java.lang.String repositoryID)
Returns a boolean of whether or not RepositoryId indicates FullValueDescriptor. used for backward compatability

        
        return RepositoryId_1_3.useFullValueDescription(clazz, repositoryID);
     
protected voidwriteCharArray(org.omg.CORBA_2_3.portable.OutputStream out, char[] array, int offset, int length)
Preserves the incorrect 1.3 behavior which truncates Java chars in arrays to 8-bit CORBA chars. Bug 4367783. This enables us to continue interoperating with our legacy ORBs. If this goes into Ladybird, then Ladybird and Kestrel will interoperate as long as people don't use chars greater than 8-bits.

        out.write_char_array(array, offset, length);
    
public java.io.SerializablewriteReplace(java.io.Serializable value)
If the value contains a writeReplace method then the result is returned. Otherwise, the value itself is returned.

return
the true value to marshal on the wire.

	return super.writeReplace(value);
    
public voidwriteValue(org.omg.CORBA.portable.OutputStream _out, java.io.Serializable value)
Writes the value to the stream using java semantics.

param
out The stream to write the value to
param
value The value to be written to the stream

	super.writeValue(_out, value);