protected void init(boolean useDirect, int outSize, int inSize, int cacheSize) {

        this.useDirectBuffer = useDirect;
        this.outgoingHdrBufferSize = outSize;
        this.incomingBufferSize = inSize;
        // if cache size has increased, then allocate the larger bytecache
        // array, but don't change to a smaller array
        if (cacheSize > this.byteCacheSize) {
            this.byteCacheSize = cacheSize;
            this.byteCache = new byte[cacheSize];
        }
    }
protected void init ( boolean useDirect , int outSize , int inSize , int cacheSize ) { this . useDirectBuffer = useDirect ; this . outgoingHdrBufferSize = outSize ; this . incomingBufferSize = inSize ; if ( cacheSize > this . byteCacheSize ) { this . byteCacheSize = cacheSize ; this . byteCache = new byte [ cacheSize ] ; } }
Initialize this class instance with the chosen parse configuration
options.

@param useDirect -- use direct ByteBuffers or indirect
@param outSize -- size of buffers to use while marshalling headers
@param inSize -- size of buffers to use while parsing headers
@param cacheSize -- byte cache size of optimized parsing