Deprecated
Since 2.16 recycling aspects are handled via RecyclerPool.
BufferRecycler
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocalBufferManager | _bufferRecyclerTracker
Flag that indicates whether |
| protected static final ThreadLocal | _recyclerRef
This |
| public static final String | SYSTEM_PROPERTY_TRACK_REUSABLE_BUFFERS
System property that is checked to see if recycled buffers (see |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: String encoded as UTF-8 bytes.String to encode text)
Deprecated
Since 2.10 call
Not to be used any more.
JsonStringEncoder#getInstance() and then
encodeAsUTF8()) instead.
|
| public static BufferRecycler | Returns: BufferRecycler to use
Deprecated
Since 2.16 should use
Main accessor to call for accessing possibly recycled RecyclerPool abstraction instead
of calling static methods of this class
BufferRecycler instance.
|
| public static JsonStringEncoder | Returns: JsonStringEncoder instance to use.
Deprecated
Since 2.10 call
Not to be used any more.
JsonStringEncoder#getInstance() instead.
|
| public static char[] | Returns: Quoted text aschar[]String to quote rawText)
Deprecated
Since 2.10 call
Not to be used any more:
JsonStringEncoder#getInstance() and then
quoteAsString()) instead.
|
| public static void | quoteAsJsonText(CharSequence
Textual content to quote input, StringBuilder Builder to append quoted content output)
Deprecated
Since 2.10 call
Not to be used any more.
JsonStringEncoder#getInstance() and then
quoteAsString()) instead.
|
| public static byte[] | Returns: Quoted text asbyte[]String to quote rawText)
Deprecated
Since 2.10 call
Not to be used any more.
JsonStringEncoder#getInstance() (and then
quoteAsUTF8()) instead.
|
| public static int | Returns: Number of buffers released, if tracking enabled (zero or more); -1 if tracking not enabled.Specialized method that will release all recycled |
| _bufferRecyclerTracker | back to summary |
|---|---|
| private static final ThreadLocalBufferManager _bufferRecyclerTracker Flag that indicates whether | |
| _recyclerRef | back to summary |
|---|---|
| protected static final ThreadLocal<SoftReference<BufferRecycler>> _recyclerRef This | |
| SYSTEM_PROPERTY_TRACK_REUSABLE_BUFFERS | back to summary |
|---|---|
| public static final String SYSTEM_PROPERTY_TRACK_REUSABLE_BUFFERS System property that is checked to see if recycled buffers (see
| |
| BufferRecyclers | back to summary |
|---|---|
| public BufferRecyclers() | |
| encodeAsUTF8 | back to summary |
|---|---|
| public static byte[] encodeAsUTF8(String text)
Deprecated Since 2.10 call Not to be used any more.
| |
| getBufferRecycler | back to summary |
|---|---|
| public static BufferRecycler getBufferRecycler()
Deprecated Since 2.16 should use Main accessor to call for accessing possibly recycled
| |
| getJsonStringEncoder | back to summary |
|---|---|
| public static JsonStringEncoder getJsonStringEncoder()
Deprecated Since 2.10 call Not to be used any more.
| |
| quoteAsJsonText | back to summary |
|---|---|
| public static char[] quoteAsJsonText(String rawText)
Deprecated Since 2.10 call Not to be used any more:
| |
| quoteAsJsonText | back to summary |
|---|---|
| public static void quoteAsJsonText(CharSequence input, StringBuilder output)
Deprecated Since 2.10 call Not to be used any more.
| |
| quoteAsJsonUTF8 | back to summary |
|---|---|
| public static byte[] quoteAsJsonUTF8(String rawText)
Deprecated Since 2.10 call Not to be used any more.
| |
| releaseBuffers | back to summary |
|---|---|
| public static int releaseBuffers() Specialized method that will release all recycled
| |