public interface NHttpMessageParser<T extends HttpMessage>
| Modifier and Type | Method and Description |
|---|---|
int |
fillBuffer(java.nio.channels.ReadableByteChannel channel)
Fills the internal buffer of the parser with input data from the
given
ReadableByteChannel. |
T |
parse()
Attempts to parse a complete message head from the content of the
internal buffer.
|
void |
reset()
Resets the parser.
|
void reset()
int fillBuffer(java.nio.channels.ReadableByteChannel channel)
throws java.io.IOException
ReadableByteChannel.channel - the input channeljava.io.IOException - in case of an I/O error.T parse() throws java.io.IOException, HttpException
null.null otherwise.java.io.IOException - in case of an I/O error.HttpException - in case the HTTP message is malformed or
violates the HTTP protocol.