Top Description Constructors Methods
org.java_websocket.framing

public abstract Class DataFrame

extends FramedataImpl1
Class Inheritance
Known Direct Subclasses
org.java_websocket.framing.TextFrame, org.java_websocket.framing.BinaryFrame, org.java_websocket.framing.ContinuousFrame
Imports
org.java_websocket.enums.Opcode, org.java_websocket.exceptions.InvalidDataException

Abstract class to represent data frames

Constructor Summary

AccessConstructor and Description
public
DataFrame(Opcode
the opcode to use
opcode
)

Class to represent a data frame

Method Summary

Modifier and TypeMethod and Description
public void
isValid()

Implements abstract org.java_websocket.framing.FramedataImpl1.isValid.

Check if the frame is valid due to specification

Inherited from org.java_websocket.framing.FramedataImpl1:
appendequalsgetgetOpcodegetPayloadDatagetTransfereMaskedhashCodeisFinisRSV1isRSV2isRSV3setFinsetPayloadsetRSV1setRSV2setRSV3setTransferemaskedtoString

Constructor Detail

DataFrameback to summary
public DataFrame(Opcode opcode)

Class to represent a data frame

Parameters
opcode:Opcode

the opcode to use

Method Detail

isValidback to summary
public void isValid() throws InvalidDataException

Implements abstract org.java_websocket.framing.FramedataImpl1.isValid.

Doc from org.java_websocket.framing.FramedataImpl1.isValid.

Check if the frame is valid due to specification

Annotations
@Override
Exceptions
InvalidDataException:
thrown if the frame is not a valid frame