Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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()
      • getDelegate

        public Delegate getDelegate​(ORB orb)
      • 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 class java.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 class java.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 class java.lang.Object
        Returns:
        a string representation of this stub.