Class Platform


  • @GwtCompatible(emulated=true)
    final class Platform
    extends java.lang.Object
    Methods factored out so that they can be emulated differently in GWT.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.ThreadLocal<char[]> DEST_TL
      A thread-local destination buffer to keep us from creating new buffers.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Platform()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static char[] charBufferFromThreadLocal()
      Returns a thread-local 1024-char array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEST_TL

        private static final java.lang.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 Detail

      • Platform

        private Platform()
    • Method Detail

      • charBufferFromThreadLocal

        static char[] charBufferFromThreadLocal()
        Returns a thread-local 1024-char array.