fiftyone.mobile.detection.factories
Class BaseEntityFactory<T>

java.lang.Object
  extended by fiftyone.mobile.detection.factories.BaseEntityFactory<T>
Direct Known Subclasses:
AsciiStringFactory, ComponentFactory, MapFactory, NodeFactory, ProfileFactory, ProfileOffsetFactory, PropertyFactory, RankedSignatureIndexFactory, RootNodeFactory, SignatureFactory, ValueFactory

public abstract class BaseEntityFactory<T>
extends Object


Constructor Summary
BaseEntityFactory()
           
 
Method Summary
abstract  T create(Dataset dataSet, int index, BinaryReader reader)
           
 int getLength()
           
 int getLength(T entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseEntityFactory

public BaseEntityFactory()
Method Detail

create

public abstract T create(Dataset dataSet,
                         int index,
                         BinaryReader reader)
                  throws IOException
Throws:
IOException

getLength

public int getLength(T entity)
Parameters:
entity - whose size is required.
Returns:
the size of the entity provided.

getLength

public int getLength()
Returns:
returns the size of a fixed length entity type.