jef.dna.attributesTable.impl.def
Class ATableFactory

java.lang.Object
  extended by jef.dna.attributesTable.impl.def.ATableFactory
All Implemented Interfaces:
AttributesTableFactory

public class ATableFactory
extends java.lang.Object
implements AttributesTableFactory

This is the default implementation of the AttributesTableFactory interface.

Author:
Francesco Russo

Constructor Summary
ATableFactory()
          Creates a new instance of ATableFactory
 
Method Summary
 AttributesTable getInstance()
          Returns an empty instance of the AttributesTable interface
 AttributesTable getInstance(java.io.DataInputStream dis, Dna dna, int ac)
          Returns a populated instance of the AttributesTable interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ATableFactory

public ATableFactory()
Creates a new instance of ATableFactory

Method Detail

getInstance

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

Specified by:
getInstance in interface AttributesTableFactory
Returns:
AttributesTable The implementation instance

getInstance

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

Specified by:
getInstance in interface AttributesTableFactory
Parameters:
dis - The input stream the table has to be read from
dna - The Dna container
ac - The number of expected attributes
Returns:
AttributesTable The implementation instance
Throws:
MissingDnaContainerException
DnaDeserializationException