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.Serializable
This 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 int
hashCode
private byte[][]
profileData
private int[]
profileTags
private static long
serialVersionUID
private 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 void
appendByteArray(java.lang.StringBuilder result, byte[] data)
void
doRead(java.io.ObjectInputStream stream)
void
doWrite(java.io.ObjectOutputStream stream)
private boolean
equalArrays(byte[][] data1, byte[][] data2)
boolean
equals(java.lang.Object obj)
Delegate
getDelegate(ORB orb)
java.lang.String
getRepositoryId()
int
hashCode()
Returns a hash code value for the object which is the same for all stubs that represent the same remote object.java.lang.String
toString()
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.IOException
java.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:
hashCode
in 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:
equals
in 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:
toString
in classjava.lang.Object
- Returns:
- a string representation of this stub.
-
-