public class UnknownBodyParser extends BodyParser
Modifier and Type | Field and Description |
---|---|
private int |
cursor |
LOG
Constructor and Description |
---|
UnknownBodyParser(HeaderParser headerParser,
Parser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
private int |
consume(java.nio.ByteBuffer buffer,
int length) |
boolean |
parse(java.nio.ByteBuffer buffer)
Parses the body bytes in the given
buffer ; only the body
bytes are consumed, therefore when this method returns, the buffer
may contain unconsumed bytes. |
connectionFailure, emptyBody, getBodyLength, getStreamId, hasFlag, isEndStream, isPadding, notifyData, notifyGoAway, notifyHeaders, notifyPing, notifyPriority, notifyPushPromise, notifyReset, notifySettings, notifyWindowUpdate, streamFailure
public UnknownBodyParser(HeaderParser headerParser, Parser.Listener listener)
public boolean parse(java.nio.ByteBuffer buffer)
BodyParser
Parses the body bytes in the given buffer
; only the body
bytes are consumed, therefore when this method returns, the buffer
may contain unconsumed bytes.
parse
in class BodyParser
buffer
- the buffer to parseprivate int consume(java.nio.ByteBuffer buffer, int length)