Class MarkupParser.BufferPool

  • Enclosing class:
    MarkupParser

    private static final class MarkupParser.BufferPool
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean[] allocated  
      private char[][] pool  
      private int poolBufferSize  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BufferPool​(int poolSize, int poolBufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private char[] allocateBuffer​(int bufferSize)  
      private void releaseBuffer​(char[] buffer)  
      • Methods inherited from class java.lang.Object

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

      • pool

        private final char[][] pool
      • allocated

        private final boolean[] allocated
      • poolBufferSize

        private final int poolBufferSize
    • Constructor Detail

      • BufferPool

        private BufferPool​(int poolSize,
                           int poolBufferSize)
    • Method Detail

      • allocateBuffer

        private char[] allocateBuffer​(int bufferSize)
      • releaseBuffer

        private void releaseBuffer​(char[] buffer)