SerializableStringpublic class SerializedString extends java.lang.Object implements SerializableString
Class is final for performance reasons and since this is not designed to be extensible or customizable (customizations would occur in calling code)
| Modifier and Type | Field | Description |
|---|---|---|
protected char[] |
_quotedChars |
|
protected byte[] |
_quotedUTF8Ref |
|
protected byte[] |
_unquotedUTF8Ref |
|
protected java.lang.String |
_value |
| Constructor | Description |
|---|---|
SerializedString(java.lang.String v) |
| Modifier and Type | Method | Description |
|---|---|---|
char[] |
asQuotedChars() |
Returns JSON quoted form of the String, as character array.
|
byte[] |
asQuotedUTF8() |
Accessor for accessing value as is (without JSON quoting)
encoded using UTF-8 encoding.
|
byte[] |
asUnquotedUTF8() |
Accessor for accessing value that has been quoted using JSON
quoting rules, and encoded using UTF-8 encoding.
|
int |
charLength() |
Returns length of the String as characters
|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getValue() |
Returns unquoted String that this object represents (and offers
serialized forms for)
|
int |
hashCode() |
|
java.lang.String |
toString() |
protected final java.lang.String _value
protected byte[] _quotedUTF8Ref
protected byte[] _unquotedUTF8Ref
protected char[] _quotedChars
public final java.lang.String getValue()
SerializableStringgetValue in interface SerializableStringpublic final int charLength()
charLength in interface SerializableStringpublic final char[] asQuotedChars()
SerializableStringasQuotedChars in interface SerializableStringpublic final byte[] asUnquotedUTF8()
asUnquotedUTF8 in interface SerializableStringpublic final byte[] asQuotedUTF8()
asQuotedUTF8 in interface SerializableStringpublic final java.lang.String toString()
toString in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Object