public class DataFrame extends Frame
Modifier | Constructor and Description |
---|---|
protected |
DataFrame(Opcode opcode,
boolean finalFragment,
int rsvBits,
byte[] payload)
Constructs a generic Web Socket data frame.
|
protected |
DataFrame(Opcode opcode,
byte[] payload)
Constructs a generic Web Socket data frame being the final fragment in a
message and with all reserved bits cleared.
|
getOpcode, getPayload, getPayloadLength, getRsvBits, isFinalFragment, isRsvBit1, isRsvBit2, isRsvBit3
protected DataFrame(Opcode opcode, boolean finalFragment, int rsvBits, byte[] payload)
opcode
- the type of created framefinalFragment
- determines if the created frame is the final fragment in
a messagersvBits
- reserved bits for extensions or future versionspayload
- payload dataprotected DataFrame(Opcode opcode, byte[] payload)
opcode
- the type of created framepayload
- payload dataCopyright © 2017–2022 SNF4J.ORG. All rights reserved.