| java.lang.Object | |
| ↳ | com.fasterxml.jackson.core.io.SerializedString |
String token that can lazily serialize String contained and then reuse that serialization later on. This is similar to JDBC prepared statements, for example, in that instances should only be created when they are used more than use; prime candidates are various serializers.
Class is final for performance reasons and since this is not designed to be extensible or customizable (customizations would occur in calling code)
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| _quotedChars | |||||||||||
| _quotedUTF8Ref | |||||||||||
| _unquotedUTF8Ref | |||||||||||
| _value | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Method that will append quoted characters of this String into given
buffer.
| |||||||||||
Method that will append quoted UTF-8 bytes of this String into given
buffer, if there is enough room; if not, returns -1.
| |||||||||||
Method that will append unquoted characters of this String into given
buffer.
| |||||||||||
Method that will append unquoted ('raw') UTF-8 bytes of this String into given
buffer.
| |||||||||||
Returns JSON quoted form of the String, as character array.
| |||||||||||
Accessor for accessing value as is (without JSON quoting)
encoded using UTF-8 encoding.
| |||||||||||
Accessor for accessing value that has been quoted using JSON
quoting rules, and encoded using UTF-8 encoding.
| |||||||||||
Returns length of the String as characters
| |||||||||||
Returns unquoted String that this object represents (and offers
serialized forms for)
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.fasterxml.jackson.core.SerializableString
| |||||||||||
Method that will append quoted characters of this String into given buffer. Functionally equivalent to:
char[] ch = str.asQuotedChars(); System.arraycopy(ch, 0, buffer, offset, ch.length); return ch.length;
Method that will append quoted UTF-8 bytes of this String into given buffer, if there is enough room; if not, returns -1. Functionally equivalent to:
byte[] bytes = str.asQuotedUTF8(); System.arraycopy(bytes, 0, buffer, offset, bytes.length); return bytes.length;
Method that will append unquoted characters of this String into given buffer. Functionally equivalent to:
char[] ch = str.getValue().toCharArray(); System.arraycopy(bytes, 0, buffer, offset, ch.length); return ch.length;
Method that will append unquoted ('raw') UTF-8 bytes of this String into given buffer. Functionally equivalent to:
byte[] bytes = str.asUnquotedUTF8(); System.arraycopy(bytes, 0, buffer, offset, bytes.length); return bytes.length;
Returns JSON quoted form of the String, as character array. Result can be embedded as-is in textual JSON as property name or JSON String.
Accessor for accessing value as is (without JSON quoting) encoded using UTF-8 encoding.
Accessor for accessing value that has been quoted using JSON quoting rules, and encoded using UTF-8 encoding.
Returns length of the String as characters
Returns unquoted String that this object represents (and offers serialized forms for)