Package com.sun.corba.ee.impl.ior
Class StubIORImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.ior.StubIORImpl
-
- All Implemented Interfaces:
java.io.Serializable
public class StubIORImpl extends java.lang.Object implements java.io.SerializableThis class implements a very simply IOR representation which must be completely ORBImpl free so that this class can be used in the implementation of a portable StubDelegateImpl.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private inthashCodeprivate byte[][]profileDataprivate int[]profileTagsprivate static longserialVersionUIDprivate byte[]typeData
-
Constructor Summary
Constructors Constructor Description StubIORImpl()StubIORImpl(Object obj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendByteArray(java.lang.StringBuilder result, byte[] data)voiddoRead(java.io.ObjectInputStream stream)voiddoWrite(java.io.ObjectOutputStream stream)private booleanequalArrays(byte[][] data1, byte[][] data2)booleanequals(java.lang.Object obj)DelegategetDelegate(ORB orb)java.lang.StringgetRepositoryId()inthashCode()Returns a hash code value for the object which is the same for all stubs that represent the same remote object.java.lang.StringtoString()Returns a string representation of this stub.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
hashCode
private transient int hashCode
-
typeData
private byte[] typeData
-
profileTags
private int[] profileTags
-
profileData
private byte[][] profileData
-
-
Constructor Detail
-
StubIORImpl
public StubIORImpl()
-
StubIORImpl
public StubIORImpl(Object obj)
-
-
Method Detail
-
getRepositoryId
public java.lang.String getRepositoryId()
-
doRead
public void doRead(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
doWrite
public void doWrite(java.io.ObjectOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
hashCode
public int hashCode()
Returns a hash code value for the object which is the same for all stubs that represent the same remote object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hash code value.
-
equalArrays
private boolean equalArrays(byte[][] data1, byte[][] data2)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
appendByteArray
private void appendByteArray(java.lang.StringBuilder result, byte[] data)
-
toString
public java.lang.String toString()
Returns a string representation of this stub. Returns the same string for all stubs that represent the same remote object."SimpleIORImpl[<typeName>,[<profileID>]data, ...]"- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this stub.
-
-