Interface HttpDecoderInput
- All Superinterfaces:
AutoCloseable
,SafeCloseable
@UnstableApi public interface HttpDecoderInput extends SafeCloseable
An input of
HttpDecoder
which is used to read a stream of HttpData
.-
Method Summary
Modifier and Type Method Description int
readableBytes()
Returns the number of readable bytes.byte
readByte()
Reads a byte from the readable bytes.ByteBuf
readBytes(int length)
Reads a newly retained slice of thisByteBuf
from the readable bytes.int
readInt()
Reads a 32-bit integer from the readable bytes.default short
readUnsignedByte()
Reads an unsigned byte from the readable bytes.
-
Method Details
-
readableBytes
int readableBytes()Returns the number of readable bytes. -
readByte
byte readByte()Reads a byte from the readable bytes. -
readUnsignedByte
default short readUnsignedByte()Reads an unsigned byte from the readable bytes. -
readInt
int readInt()Reads a 32-bit integer from the readable bytes. -
readBytes
Reads a newly retained slice of thisByteBuf
from the readable bytes.- Throws:
IllegalStateException
- if the specifiedlength
is greater thanreadableBytes()
-