| 构造器和说明 |
|---|
HeaderParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 when this method returns, the buffer may
contain unconsumed bytes. |
protected void |
reset() |
protected void reset()
public boolean parse(ByteBuffer buffer)
Parses the header bytes in the given buffer; only the header
bytes are consumed, therefore when this method returns, 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 © 2017. All rights reserved.