- Number of bytes read.
Some filters need additional parameters from the request. All the
necessary reading can occur in that method, as this method is called
after the request header processing is complete.
Make the filter ready to process the next request.
Get the name of the encoding handled by this filter.
Set the next buffer in the filter pipeline.
End the current request.
- 0 is the expected return value. A positive value indicates that
too many bytes were read. This method is allowed to use buffer.doRead
to consume extra bytes. The result of this method can't be negative (if
an error happens, an IOException should be thrown instead).
Amount of bytes still available in a buffer.