public class HeaderParser extends Object
| Constructor and Description |
|---|
HeaderParser() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFrameType() |
int |
getLength() |
int |
getStreamId() |
boolean |
hasFlag(int bit) |
boolean |
parse(ByteBuffer buffer)
Parses the header bytes in the given
buffer; only the header
bytes are consumed, therefore the buffer may contain unconsumed bytes. |
protected void |
reset() |
protected void reset()
public boolean parse(ByteBuffer buffer)
buffer; only the header
bytes are consumed, therefore the buffer may contain unconsumed bytes.buffer - the buffer to parsepublic int getLength()
public int getFrameType()
public boolean hasFlag(int bit)
public int getStreamId()
Copyright © 1995-2014 Webtide. All Rights Reserved.