public class AsciiString extends BaseEntity
Many native string formats use UNICODE format using 2 bytes for every character. This is inefficient when only ASCII values are being stored. The AsciiString class wraps a byte array of ASCII characters and exposes them as a native string type when required.
Strings stored as ASCII strings include, the relevant characters from signatures, sub strings longer than 4 characters, property and value names, the descriptions and URLs associated with properties and values.
Objects of this class should not be created directly as they are part of the internal logic.
For more information see: 51Degrees pattern data model.
dataSet, index| Constructor and Description |
|---|
AsciiString(Dataset dataSet,
int offset,
BinaryReader reader)
Constructs a new instance of AsciiString.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
The length of the byte array or string in characters.
|
String |
toString()
.NET string representation of the ASCII string.
|
compareTo, compareTo, getDataSet, getIndex, getIsNumeric, getNumber, readIntegerArray, readIntegerListpublic AsciiString(Dataset dataSet, int offset, BinaryReader reader)
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 - Reader connected to the source data structure and
positioned to start reading.Copyright © 2017 51Degrees. All rights reserved.