jef.dna.methodsTable
Interface MethodsTableFactory

All Known Implementing Classes:
MTableFactory

public interface MethodsTableFactory

This interface defines the methods every real implementation class of the MethodsTableFactory interface has to provide.

Author:
Francesco Russo

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

Method Detail

getInstance

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

Returns:
MethodsTable The implementation instance

getInstance

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

Parameters:
dis - The InputStream from which the MethodsTableFactory will read the MethodTable
dna - The Dna instance the MethodTable belongs to
methodsCount - The number of expected methods
Returns:
MethodsTable The implementation instance
Throws:
MissingDnaContainerException
DnaDeserializationException