Class Platform

java.lang.Object
com.google.common.escape.Platform

final class Platform extends Object
Methods factored out so that they can be emulated differently in GWT.
  • Field Details

    • DEST_TL

      private static final ThreadLocal<char[]> 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.