SocketBufferHandler (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.tomcat.util.net, class: SocketBufferHandler

# Class SocketBufferHandler

java.lang.Object
org.apache.tomcat.util.net.SocketBufferHandler

public class SocketBufferHandler extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SocketBufferHandler(int readBufferSize, int writeBufferSize, boolean direct)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `configureReadBufferForRead()`
  `void`
  `configureReadBufferForWrite()`
  `void`
  `configureWriteBufferForRead()`
  `void`
  `configureWriteBufferForWrite()`
  `void`
  `expand(int newSize)`
  `void`
  `free()`
  `ByteBuffer`
  `getReadBuffer()`
  `ByteBuffer`
  `getWriteBuffer()`
  `boolean`
  `isReadBufferEmpty()`
  `boolean`
  `isWriteBufferEmpty()`
  `boolean`
  `isWriteBufferWritable()`
  `void`
  `reset()`
  `void`
  `unReadReadBuffer(ByteBuffer returnedData)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SocketBufferHandler

    public SocketBufferHandler(int readBufferSize, int writeBufferSize, boolean direct)

- ## Method Details

  - ### configureReadBufferForWrite

    public void configureReadBufferForWrite()

  - ### configureReadBufferForRead

    public void configureReadBufferForRead()

  - ### getReadBuffer

    public ByteBuffer getReadBuffer()

  - ### isReadBufferEmpty

    public boolean isReadBufferEmpty()

  - ### unReadReadBuffer

    public void unReadReadBuffer(ByteBuffer returnedData)

  - ### configureWriteBufferForWrite

    public void configureWriteBufferForWrite()

  - ### configureWriteBufferForRead

    public void configureWriteBufferForRead()

  - ### isWriteBufferWritable

    public boolean isWriteBufferWritable()

  - ### getWriteBuffer

    public ByteBuffer getWriteBuffer()

  - ### isWriteBufferEmpty

    public boolean isWriteBufferEmpty()

  - ### reset

    public void reset()

  - ### expand

    public void expand(int newSize)

  - ### free

    public void free()