jef.dna.fieldsTable
Interface FieldsTableFactory

All Known Implementing Classes:
FTableFactory

public interface FieldsTableFactory

This interface defines the methods every imlpementation class has to provide for instantiating FieldsTable objects.

Author:
Francesco Russo

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

Method Detail

getInstance

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

Returns:
FieldsTable The implementation instance

getInstance

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

Parameters:
dis - The input stream the table has to be read from
dna - The Dna container
fieldsCount - The number of expected fields
Returns:
FieldsTable The implementation instance
Throws:
MissingDnaContainerException
DnaDeserializationException