public class AsciiStringFactory extends BaseEntityFactory<AsciiString>
Objects of this class should not be created directly as they are part of the internal logic.
| Constructor and Description |
|---|
AsciiStringFactory() |
| Modifier and Type | Method and Description |
|---|---|
AsciiString |
create(Dataset dataSet,
int offset,
BinaryReader reader)
Creates a new instance of AsciiString.
|
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.
|
getLengthpublic AsciiString create(Dataset dataSet, int offset, BinaryReader reader)
create in class BaseEntityFactory<AsciiString>dataSet - The data set whose strings list the string is contained
within.offset - The offset to the start of the string within the string
data structure.reader - Binary reader positioned at the start of the AsciiString.public int getLength(AsciiString entity)
getLength in class BaseEntityFactory<AsciiString>entity - Entity of type AsciiString.Copyright © 2017 51Degrees. All rights reserved.