Package com.sun.corba.ee.impl.ior.iiop
Class JavaSerializationComponent
- java.lang.Object
-
- com.sun.corba.ee.spi.ior.IdentifiableBase
-
- com.sun.corba.ee.spi.ior.TaggedComponentBase
-
- com.sun.corba.ee.impl.ior.iiop.JavaSerializationComponent
-
- All Implemented Interfaces:
Identifiable
,TaggedComponent
,Writeable
,WriteContents
public class JavaSerializationComponent extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description private static JavaSerializationComponent
singleton
private byte
version
-
Constructor Summary
Constructors Constructor Description JavaSerializationComponent(byte version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getId()
Return the (type) identity of this entity.int
hashCode()
byte
javaSerializationVersion()
static JavaSerializationComponent
singleton()
void
writeContents(OutputStream os)
-
Methods inherited from class com.sun.corba.ee.spi.ior.TaggedComponentBase
getIOPComponent
-
Methods inherited from class com.sun.corba.ee.spi.ior.IdentifiableBase
write
-
-
-
-
Field Detail
-
version
private byte version
-
singleton
private static JavaSerializationComponent singleton
-
-
Method Detail
-
singleton
public static JavaSerializationComponent singleton()
-
javaSerializationVersion
public byte javaSerializationVersion()
-
writeContents
public void writeContents(OutputStream os)
-
getId
public int getId()
Description copied from interface:Identifiable
Return the (type) identity of this entity.- Returns:
- int
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-