fiftyone.mobile.detection.factories
Class AsciiStringFactory
java.lang.Object
fiftyone.mobile.detection.factories.BaseEntityFactory<AsciiString>
fiftyone.mobile.detection.factories.AsciiStringFactory
public class AsciiStringFactory
- extends BaseEntityFactory<AsciiString>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsciiStringFactory
public AsciiStringFactory()
create
public AsciiString create(Dataset dataSet,
int offset,
BinaryReader reader)
- Creates a new instance of AsciiString
- Specified by:
create in class BaseEntityFactory<AsciiString>
- Parameters:
dataSet - The data set whose strings list the string is contained
withinoffset - The offset to the start of the string within the string
data structurereader - Binary reader positioned at the start of the AsciiString
- Returns:
- A new instance of an AsciiString
getLength
public int getLength(AsciiString entity)
- Returns the length of the AsciiString entity including the 2 bytes for
the length and the null terminator not used by java.
- Overrides:
getLength in class BaseEntityFactory<AsciiString>
- Parameters:
entity - Entity of type AsciiString
- Returns:
- Length in bytes of the AsciiString