public class Http11InputBuffer extends java.lang.Object implements InputBuffer, ApplicationBufferHandler
EMPTY, EMPTY_BUFFER| Constructor and Description |
|---|
Http11InputBuffer(Request request,
int headerBufferSize,
boolean rejectIllegalHeader,
HttpParser httpParser) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Obtain an estimate of the number of bytes that can be read without blocking.
|
int |
doRead(ApplicationBufferHandler handler)
Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler.
|
void |
expand(int size) |
java.nio.ByteBuffer |
getByteBuffer() |
void |
setByteBuffer(java.nio.ByteBuffer buffer) |
public Http11InputBuffer(Request request, int headerBufferSize, boolean rejectIllegalHeader, HttpParser httpParser)
public int doRead(ApplicationBufferHandler handler) throws java.io.IOException
InputBufferdoRead in interface InputBufferhandler - ApplicationBufferHandler that provides the buffer to read data into.java.io.IOException - If an I/O error occurs reading from the input streampublic int available()
InputBufferavailable in interface InputBufferpublic void setByteBuffer(java.nio.ByteBuffer buffer)
setByteBuffer in interface ApplicationBufferHandlerpublic java.nio.ByteBuffer getByteBuffer()
getByteBuffer in interface ApplicationBufferHandlerpublic void expand(int size)
expand in interface ApplicationBufferHandlerCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.