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 Handler
This handler reads the full object key, both the oktemp and the ID.static final int
static final int
static final int
static final byte
static final int
static final int
private Handler
This handler reads only the oktemp.private final ORB
private static final IORSystemException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(byte[] key) Create an ObjectKey from its octet sequence representation.private ObjectKeyTemplate
create
(InputStream is, Handler handler, OctetSeqHolder osh) Creates an ObjectKeyTemplate from the InputStream.Create an ObjectKeyTemplate from its representation in an InputStream.private boolean
validMagic
(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:ObjectKeyFactory
Create an ObjectKey from its octet sequence representation.- Specified by:
create
in interfaceObjectKeyFactory
- Parameters:
key
- representation of key- Returns:
- created ObjectKey
-
createTemplate
Description copied from interface:ObjectKeyFactory
Create an ObjectKeyTemplate from its representation in an InputStream.- Specified by:
createTemplate
in interfaceObjectKeyFactory
- Parameters:
is
- stream to create template from- Returns:
- create template
-