Class ObjectKeyFactoryImpl

java.lang.Object
com.sun.corba.ee.impl.ior.ObjectKeyFactoryImpl
All Implemented Interfaces:
ObjectKeyFactory

public class ObjectKeyFactoryImpl extends Object implements ObjectKeyFactory
Singleton used to manufacture ObjectKey and ObjectKeyTemplate instances.
  • Field Details

  • Constructor Details

    • ObjectKeyFactoryImpl

      public ObjectKeyFactoryImpl(ORB orb)
  • Method Details

    • validMagic

      private boolean validMagic(int magic)
      Returns true iff magic is in the range of valid magic numbers for our ORB.
    • create

      private ObjectKeyTemplate create(InputStream is, Handler handler, OctetSeqHolder osh)
      Creates an ObjectKeyTemplate from the InputStream. Most of the decoding is done inside the handler.
    • create

      public ObjectKey create(byte[] key)
      Description copied from interface: ObjectKeyFactory
      Create an ObjectKey from its octet sequence representation.
      Specified by:
      create in interface ObjectKeyFactory
      Parameters:
      key - representation of key
      Returns:
      created ObjectKey
    • createTemplate

      public ObjectKeyTemplate createTemplate(InputStream is)
      Description copied from interface: ObjectKeyFactory
      Create an ObjectKeyTemplate from its representation in an InputStream.
      Specified by:
      createTemplate in interface ObjectKeyFactory
      Parameters:
      is - stream to create template from
      Returns:
      create template