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 HandlerfullKeyThis handler reads the full object key, both the oktemp and the ID.static intJAVAMAGIC_NEWstatic intJAVAMAGIC_NEWERstatic intJAVAMAGIC_OLDstatic byteJDK1_3_1_01_PATCH_LEVELstatic intMAGIC_BASEstatic intMAX_MAGICprivate HandleroktempOnlyThis handler reads only the oktemp.private ORBorbprivate static IORSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description ObjectKeyFactoryImpl(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectKeycreate(byte[] key)Create an ObjectKey from its octet sequence representation.private ObjectKeyTemplatecreate(InputStream is, Handler handler, OctetSeqHolder osh)Creates an ObjectKeyTemplate from the InputStream.ObjectKeyTemplatecreateTemplate(InputStream is)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 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:ObjectKeyFactoryCreate an ObjectKey from its octet sequence representation.- Specified by:
createin interfaceObjectKeyFactory- Parameters:
key- representation of key- Returns:
- created ObjectKey
-
createTemplate
public ObjectKeyTemplate createTemplate(InputStream is)
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
-
-