Package com.sun.corba.ee.impl.ior
Class ObjectKeyFactoryImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.ior.ObjectKeyFactoryImpl
-
- All Implemented Interfaces:
ObjectKeyFactory
public class ObjectKeyFactoryImpl extends java.lang.Object implements ObjectKeyFactory
Singleton used to manufacture ObjectKey and ObjectKeyTemplate instances.
-
-
Field Summary
Fields Modifier and Type Field Description private Handler
fullKey
This handler reads the full object key, both the oktemp and the ID.static int
JAVAMAGIC_NEW
static int
JAVAMAGIC_NEWER
static int
JAVAMAGIC_OLD
static byte
JDK1_3_1_01_PATCH_LEVEL
static int
MAGIC_BASE
static int
MAX_MAGIC
private Handler
oktempOnly
This handler reads only the oktemp.private ORB
orb
private static IORSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description ObjectKeyFactoryImpl(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectKey
create(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.ObjectKeyTemplate
createTemplate(InputStream is)
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 Detail
-
wrapper
private static final IORSystemException wrapper
-
MAGIC_BASE
public static final int MAGIC_BASE
- See Also:
- Constant Field Values
-
JAVAMAGIC_OLD
public static final int JAVAMAGIC_OLD
- See Also:
- Constant Field Values
-
JAVAMAGIC_NEW
public static final int JAVAMAGIC_NEW
- See Also:
- Constant Field Values
-
JAVAMAGIC_NEWER
public static final int JAVAMAGIC_NEWER
- See Also:
- Constant Field Values
-
MAX_MAGIC
public static final int MAX_MAGIC
- See Also:
- Constant Field Values
-
JDK1_3_1_01_PATCH_LEVEL
public static final byte JDK1_3_1_01_PATCH_LEVEL
- See Also:
- Constant Field Values
-
orb
private final ORB orb
-
fullKey
private Handler fullKey
This handler reads the full object key, both the oktemp and the ID.
-
oktempOnly
private Handler oktempOnly
This handler reads only the oktemp.
-
-
Constructor Detail
-
ObjectKeyFactoryImpl
public ObjectKeyFactoryImpl(ORB orb)
-
-
Method Detail
-
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 interfaceObjectKeyFactory
- 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 interfaceObjectKeyFactory
- Parameters:
is
- stream to create template from- Returns:
- create template
-
-