FileDocCategorySizeDatePackage
JavaSerializationComponent.javaAPI DocJava SE 5 API1952Fri Aug 26 14:54:24 BST 2005com.sun.corba.se.impl.ior.iiop

JavaSerializationComponent

public class JavaSerializationComponent extends com.sun.corba.se.spi.ior.TaggedComponentBase
Tagged component that contains a value that indicates the Java serialization version supported by the ORB. ORB Java serialization uses IIOP as the transport protocol, but uses Java serialization mechanism and its accompanying encodings, instead of IIOP CDR serialization mechanism. Java serialization is generally observed to be faster than CDR.

Fields Summary
private byte
version
private static JavaSerializationComponent
singleton
Constructors Summary
public JavaSerializationComponent(byte version)

        this.version = version;
    
Methods Summary
public booleanequals(java.lang.Object obj)

	if (!(obj instanceof JavaSerializationComponent)) {
	    return false;
	}
	JavaSerializationComponent other = (JavaSerializationComponent) obj;
	return this.version == other.version;
    
public intgetId()

	return ORBConstants.TAG_JAVA_SERIALIZATION_ID;
    
public inthashCode()

	return this.version;
    
public bytejavaSerializationVersion()

	return this.version;
    
public static com.sun.corba.se.impl.ior.iiop.JavaSerializationComponentsingleton()

	if (singleton == null) {
	    synchronized (JavaSerializationComponent.class) {
		singleton = 
		    new JavaSerializationComponent(Message.JAVA_ENC_VERSION);
	    }
	}
	return singleton;
    
public voidwriteContents(org.omg.CORBA_2_3.portable.OutputStream os)

        os.write_octet(version);