Package com.google.common.escape
Class Platform
java.lang.Object
com.google.common.escape.Platform
Methods factored out so that they can be emulated differently in GWT.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal
<char[]> A thread-local destination buffer to keep us from creating new buffers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static char[]
Returns a thread-local 1024-char array.
-
Field Details
-
DEST_TL
A thread-local destination buffer to keep us from creating new buffers. The starting size is 1024 characters. If we grow past this we don't put it back in the threadlocal, we just keep going and grow as needed.
-
-
Constructor Details
-
Platform
private Platform()
-
-
Method Details
-
charBufferFromThreadLocal
static char[] charBufferFromThreadLocal()Returns a thread-local 1024-char array.
-