public interface InputBuffer
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.
|
int doRead(ApplicationBufferHandler handler) throws IOException
handler
- ApplicationBufferHandler that provides the buffer to read
data into.IOException
- If an I/O error occurs reading from the input streamint available()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.