STRING
Primitive.
objectType:
STRING = 9 ;
Description:
The STRING primitive object is used when you need to specify an arbitrary length
sequence of characters. It consists of the objectType Integer (the byte
09), followed by an Integer encoding the number of bytes
that the encoding of the string consumes, followed by that many bytes
of data. The bytes of data are the UTF encoding of the UNICODE
characters in the string.
Internal format:
StringPrimitiveObject {
Integer objectType; // == STRING
byte value[length];
}
External format:
SerializedStringPrimitiveObject {
Integer objectType; // == STRING
Integer length;
byte value[length];
}
Examples:
09 0E 66 65 STRING "ferd is a ferd"
72 64 20 69
73 20 61 20
66 65 72 64
09 00 STRING ""