jef.dna.constantPoolTable
Interface ConstantPoolTableFactory

All Known Implementing Classes:
CPTableFactory

public interface ConstantPoolTableFactory

This is the interface every factory class returning a constant pool table implementation has to implement.

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 ConstantPoolTable getInstance()
          Returns an empty instance of the ConstantPoolTable interface
 ConstantPoolTable getInstance(java.io.DataInputStream dis, Dna dna, int cptSize)
          Returns a populated instance of the ConstantPoolTable interface
 

Method Detail

getInstance

ConstantPoolTable getInstance()
Returns an empty instance of the ConstantPoolTable interface

Returns:
ConstantPoolTable The implementation instance

getInstance

ConstantPoolTable getInstance(java.io.DataInputStream dis,
                              Dna dna,
                              int cptSize)
                              throws MissingDnaContainerException,
                                     DnaDeserializationException
Returns a populated instance of the ConstantPoolTable interface

Parameters:
dis - The input stream the constant pool table has to be read from
dna - The Dna container
cptSize - The number of expected constant pool table entries
Returns:
ConstantPoolTable The implementation instance
Throws:
MissingDnaContainerException
DnaDeserializationException