public class SerializedString extends 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)
限定符和类型 | 字段和说明 |
---|---|
protected char[] |
_quotedChars |
protected byte[] |
_quotedUTF8Ref |
protected byte[] |
_unquotedUTF8Ref |
protected String |
_value |
构造器和说明 |
---|
SerializedString(String v) |
限定符和类型 | 方法和说明 |
---|---|
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(Object o) |
String |
getValue()
Returns unquoted String that this object represents (and offers
serialized forms for)
|
int |
hashCode() |
String |
toString() |
protected final String _value
protected byte[] _quotedUTF8Ref
protected byte[] _unquotedUTF8Ref
protected char[] _quotedChars
public SerializedString(String v)
public final String getValue()
SerializableString
getValue
在接口中 SerializableString
public final int charLength()
charLength
在接口中 SerializableString
public final char[] asQuotedChars()
SerializableString
asQuotedChars
在接口中 SerializableString
public final byte[] asUnquotedUTF8()
asUnquotedUTF8
在接口中 SerializableString
public final byte[] asQuotedUTF8()
asQuotedUTF8
在接口中 SerializableString