Class StubIORImpl

java.lang.Object
com.sun.corba.ee.impl.ior.StubIORImpl
All Implemented Interfaces:
Serializable

public class StubIORImpl extends Object implements 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • hashCode

      private transient int hashCode
    • typeData

      private byte[] typeData
    • profileTags

      private int[] profileTags
    • profileData

      private byte[][] profileData
  • Constructor Details

    • StubIORImpl

      public StubIORImpl()
    • StubIORImpl

      public StubIORImpl(Object obj)
  • Method Details

    • getRepositoryId

      public String getRepositoryId()
    • getDelegate

      public Delegate getDelegate(ORB orb)
    • doRead

      public void doRead(ObjectInputStream stream) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • doWrite

      public void doWrite(ObjectOutputStream stream) throws IOException
      Throws:
      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 class Object
      Returns:
      the hash code value.
    • equalArrays

      private boolean equalArrays(byte[][] data1, byte[][] data2)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • appendByteArray

      private void appendByteArray(StringBuilder result, byte[] data)
    • toString

      public 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 class Object
      Returns:
      a string representation of this stub.