jef.dna.fieldsTable.impl.def
Class FTableFactory

java.lang.Object
  extended by jef.dna.fieldsTable.impl.def.FTableFactory
All Implemented Interfaces:
FieldsTableFactory

public class FTableFactory
extends java.lang.Object
implements FieldsTableFactory

This is the default implementation of the FieldsTableFactory interface.

Author:
Francesco Russo

Field Summary
protected static Logger logger
           
 
Constructor Summary
FTableFactory()
          Creates a new instance of FTableFactory
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger
Constructor Detail

FTableFactory

public FTableFactory()
Creates a new instance of FTableFactory

Method Detail

getInstance

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

Specified by:
getInstance in interface FieldsTableFactory
Returns:
FieldsTable The implementation instance

getInstance

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

Specified by:
getInstance in interface FieldsTableFactory
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