jef.dna.constantPoolTable.impl
Class CPTableFactory
java.lang.Object
   jef.dna.constantPoolTable.impl.CPTableFactory
jef.dna.constantPoolTable.impl.CPTableFactory
- All Implemented Interfaces: 
- ConstantPoolTableFactory
- public class CPTableFactory 
- extends java.lang.Object- implements ConstantPoolTableFactory
This class is a concrete implementation of the  interface.
- Author:
- Francesco Russo (frusso@cs.unibo.it)
| Field Summary | 
| protected static Logger | logger
 | 
 
| Constructor Summary | 
| CPTableFactory()Creates a new instance of CPTableFactory
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
logger
protected static Logger logger
CPTableFactory
public CPTableFactory()
- Creates a new instance of CPTableFactory
 
getInstance
public ConstantPoolTable getInstance()
- Returns an empty instance of the ConstantPoolTableinterface
 
- 
- Specified by:
- getInstancein interface- ConstantPoolTableFactory
 
- 
- Returns:
- ConstantPoolTable The implementation instance
 
getInstance
public ConstantPoolTable getInstance(java.io.DataInputStream dis,
                                     Dna dna,
                                     int cptSize)
                              throws MissingDnaContainerException,
                                     DnaDeserializationException
- Returns a populated instance of the ConstantPoolTableinterface
 
- 
- Specified by:
- getInstancein interface- ConstantPoolTableFactory
 
- 
- Parameters:
- dis- The input stream the constant pool table has to be read from
- dna- The- Dnacontainer
- cptSize- The number of expected constant pool table entries
- Returns:
- ConstantPoolTable The implementation instance
- Throws:
- MissingDnaContainerException
- DnaDeserializationException