Package com.sun.corba.ee.impl.ior
Class ObjectKeyFactoryImpl
java.lang.Object
com.sun.corba.ee.impl.ior.ObjectKeyFactoryImpl
- All Implemented Interfaces:
ObjectKeyFactory
Singleton used to manufacture ObjectKey and ObjectKeyTemplate
instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HandlerThis handler reads the full object key, both the oktemp and the ID.static final intstatic final intstatic final intstatic final bytestatic final intstatic final intprivate HandlerThis handler reads only the oktemp.private final ORBprivate static final IORSystemException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(byte[] key) Create an ObjectKey from its octet sequence representation.private ObjectKeyTemplatecreate(InputStream is, Handler handler, OctetSeqHolder osh) Creates an ObjectKeyTemplate from the InputStream.Create an ObjectKeyTemplate from its representation in an InputStream.private booleanvalidMagic(int magic) Returns true iff magic is in the range of valid magic numbers for our ORB.
-
Field Details
-
wrapper
-
MAGIC_BASE
public static final int MAGIC_BASE- See Also:
-
JAVAMAGIC_OLD
public static final int JAVAMAGIC_OLD- See Also:
-
JAVAMAGIC_NEW
public static final int JAVAMAGIC_NEW- See Also:
-
JAVAMAGIC_NEWER
public static final int JAVAMAGIC_NEWER- See Also:
-
MAX_MAGIC
public static final int MAX_MAGIC- See Also:
-
JDK1_3_1_01_PATCH_LEVEL
public static final byte JDK1_3_1_01_PATCH_LEVEL- See Also:
-
orb
-
fullKey
This handler reads the full object key, both the oktemp and the ID. -
oktempOnly
This handler reads only the oktemp.
-
-
Constructor Details
-
ObjectKeyFactoryImpl
-
-
Method Details
-
validMagic
private boolean validMagic(int magic) Returns true iff magic is in the range of valid magic numbers for our ORB. -
create
Creates an ObjectKeyTemplate from the InputStream. Most of the decoding is done inside the handler. -
create
Description copied from interface:ObjectKeyFactoryCreate an ObjectKey from its octet sequence representation.- Specified by:
createin interfaceObjectKeyFactory- Parameters:
key- representation of key- Returns:
- created ObjectKey
-
createTemplate
Description copied from interface:ObjectKeyFactoryCreate an ObjectKeyTemplate from its representation in an InputStream.- Specified by:
createTemplatein interfaceObjectKeyFactory- Parameters:
is- stream to create template from- Returns:
- create template
-