Note that "quoted" in methods means quoting of 'special' characters using JSON backlash notation (and not use of actual double quotes).
com.fasterxml.jackson.core.io.SerializedString
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Number of characters appended, if successful, otherwise -1Buffer to append JSON-escaped String into buffer, int Offset in offset)buffer to append String atMethod that will append quoted characters of this String into given buffer. |
| public int | Returns: Number of bytes appended, if successful, otherwise -1Buffer to append JSON-escaped String into buffer, int Offset in offset)buffer to append String atMethod that will append quoted UTF-8 bytes of this String into given buffer, if there is enough room; if not, returns -1. |
| public int | Returns: Number of characters appended, if successful, otherwise -1Buffer to append literal (unescaped) String into buffer, int Offset in offset)buffer to append String atMethod that will append unquoted characters of this String into given buffer. |
| public int | Returns: Number of bytes appended, if successful, otherwise -1Buffer to append literal (unescaped) String into buffer, int Offset in offset)buffer to append String atMethod that will append unquoted ('raw') UTF-8 bytes of this String into given buffer. |
| public char[] | Returns: JSON quoted form of the String aschar[]Returns JSON quoted form of the String, as character array. |
| public byte[] | Returns: UTF-8 encoded version of JSON-escaped StringReturns UTF-8 encoded version of JSON-quoted String. |
| public byte[] | Returns: UTF-8 encoded version of String, without any escapingReturns UTF-8 encoded version of unquoted String. |
| public int | Returns: Length of the String in charactersReturns length of the (unquoted) String as characters. |
| public String | Returns: Unquoted StringReturns unquoted String that this object represents (and offers serialized forms for) |
| public int | Returns: Number of bytes put, if contents fit, otherwise -1java. to append String intoMethod for appending JSON-escaped UTF-8 encoded String value into given
|
| public int | Returns: Number of bytes put, if contents fit, otherwise -1java. to append String intoMethod for appending unquoted ('raw') UTF-8 encoded String value into given
|
| public int | Returns: Number of bytes writtenjava. to write String intoMethod for writing JSON-escaped UTF-8 encoded String value using given
|
| public int | Returns: Number of bytes writtenjava. to write String intoMethod for writing unescaped UTF-8 encoded String value using given
|
| appendQuoted | back to summary |
|---|---|
| public int appendQuoted(char[] buffer, int offset) 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;
| |
| appendQuotedUTF8 | back to summary |
|---|---|
| public int appendQuotedUTF8(byte[] buffer, int offset) 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;
| |
| appendUnquoted | back to summary |
|---|---|
| public int appendUnquoted(char[] buffer, int offset) 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;
| |
| appendUnquotedUTF8 | back to summary |
|---|---|
| public int appendUnquotedUTF8(byte[] buffer, int offset) 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;
| |
| asQuotedChars | back to summary |
|---|---|
| public char[] asQuotedChars() 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.
| |
| asQuotedUTF8 | back to summary |
|---|---|
| public byte[] asQuotedUTF8() Returns UTF-8 encoded version of JSON-quoted String. Functionally equivalent to (but more efficient than):
new String(asQuotedChars()).getBytes("UTF-8");
| |
| asUnquotedUTF8 | back to summary |
|---|---|
| public byte[] asUnquotedUTF8() Returns UTF-8 encoded version of unquoted String. Functionally equivalent to (but more efficient than):
getValue().getBytes("UTF-8");
| |
| charLength | back to summary |
|---|---|
| public int charLength() Returns length of the (unquoted) String as characters. Functionally equivalent to: getValue().length();
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns unquoted String that this object represents (and offers serialized forms for)
| |
| putQuotedUTF8 | back to summary |
|---|---|
| public int putQuotedUTF8(ByteBuffer buffer) throws IOException Method for appending JSON-escaped UTF-8 encoded String value into given
| |
| putUnquotedUTF8 | back to summary |
|---|---|
| public int putUnquotedUTF8(ByteBuffer buffer) throws IOException Method for appending unquoted ('raw') UTF-8 encoded String value into given
| |
| writeQuotedUTF8 | back to summary |
|---|---|
| public int writeQuotedUTF8(OutputStream out) throws IOException Method for writing JSON-escaped UTF-8 encoded String value using given
| |
| writeUnquotedUTF8 | back to summary |
|---|---|
| public int writeUnquotedUTF8(OutputStream out) throws IOException Method for writing unescaped UTF-8 encoded String value using given
| |