T - Type of entity to create.public abstract class BaseEntityFactory<T> extends Object
Objects of this class should not be created directly as they are part of the internal logic.
| Constructor and Description |
|---|
BaseEntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
create(Dataset dataSet,
int index,
BinaryReader reader)
Creates a new entity.
|
int |
getLength() |
int |
getLength(T entity) |
public abstract T create(Dataset dataSet, int index, BinaryReader reader) throws IOException
dataSet - The data set to read entity from.index - The offset to the start of the entity within the string
data structure.reader - Binary reader positioned at the start of the AsciiString.IOException - if there was a problem accessing data file.public int getLength(T entity) throws IOException
entity - whose size is required.IOException - if there was a problem accessing data file.public int getLength()
throws IOException
IOException - if there was a problem accessing data file.Copyright © 2015 51Degrees. All rights reserved.