public class FrameHeaderDraft06 extends Object implements FrameHeader
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
fragmented
The fragmented.
|
protected int |
headerLength
The header length.
|
protected FrameBuilderDraft06.Opcode |
opcode
The opcode.
|
protected long |
payloadLength
The payload length.
|
protected FrameBuilderDraft06.PayloadLengthType |
payloadLengthType
The payload length type.
|
protected FrameBuilderDraft06.Opcode |
realOpcode
The real opcode.
|
| 构造器和说明 |
|---|
FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode)
Instantiates a new frame header draft06.
|
FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode,
FrameBuilderDraft06.Opcode realOpcode)
Instantiates a new frame header draft06.
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getContentsLength()
Gets the contents length.
|
long |
getFrameLength()
Gets the frame length.
|
int |
getHeaderLength()
Gets the header length.
|
FrameBuilderDraft06.Opcode |
getOpcode()
Gets the opcode.
|
FrameBuilderDraft06.Opcode |
getRealOpcode()
If opcode is CONTINUATION, real opcode has previous non-CONTINUATION opcode
or not real opcode is null.
|
boolean |
isContinuation()
Checks if is continuation.
|
boolean |
isFragmented()
Checks if is fragmented.
|
ByteBuffer |
toByteBuffer()
To byte buffer.
|
protected final long payloadLength
protected final FrameBuilderDraft06.PayloadLengthType payloadLengthType
protected final int headerLength
protected final boolean fragmented
protected final FrameBuilderDraft06.Opcode opcode
protected FrameBuilderDraft06.Opcode realOpcode
public FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode)
fragmented - the fragmentedheaderLength - the header lengthpayloadLengthType - the payload length typepayloadLength - the payload lengthopcode - the opcodepublic FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode,
FrameBuilderDraft06.Opcode realOpcode)
fragmented - the fragmentedheaderLength - the header lengthpayloadLengthType - the payload length typepayloadLength - the payload lengthopcode - the opcoderealOpcode - the real opcodepublic long getFrameLength()
FrameHeadergetFrameLength 在接口中 FrameHeaderpublic int getHeaderLength()
public long getContentsLength()
FrameHeadergetContentsLength 在接口中 FrameHeaderpublic boolean isFragmented()
public boolean isContinuation()
public FrameBuilderDraft06.Opcode getOpcode()
public FrameBuilderDraft06.Opcode getRealOpcode()
public ByteBuffer toByteBuffer()
FrameHeadertoByteBuffer 在接口中 FrameHeaderCopyright © 2020. All rights reserved.