Java Code Examples for com.fasterxml.jackson.core.util.BufferRecyclers#quoteAsJsonText()
The following examples show how to use
com.fasterxml.jackson.core.util.BufferRecyclers#quoteAsJsonText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SerializedString.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public final char[] asQuotedChars() { char[] result = _quotedChars; if (result == null) { result = BufferRecyclers.quoteAsJsonText(_value); _quotedChars = result; } return result; }
Example 2
Source File: SerializedString.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public int appendQuoted(char[] buffer, int offset) { char[] result = _quotedChars; if (result == null) { result = BufferRecyclers.quoteAsJsonText(_value); _quotedChars = result; } final int length = result.length; if ((offset + length) > buffer.length) { return -1; } System.arraycopy(result, 0, buffer, offset, length); return length; }