Package org.java_websocket.framing
Class DataFrame
java.lang.Object
org.java_websocket.framing.FramedataImpl1
org.java_websocket.framing.DataFrame
- All Implemented Interfaces:
Framedata
- Direct Known Subclasses:
BinaryFrame
,ContinuousFrame
,TextFrame
Abstract class to represent data frames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
isValid()
Check if the frame is valid due to specificationMethods inherited from class org.java_websocket.framing.FramedataImpl1
append, equals, get, getOpcode, getPayloadData, getTransfereMasked, hashCode, isFin, isRSV1, isRSV2, isRSV3, setFin, setPayload, setRSV1, setRSV2, setRSV3, setTransferemasked, toString
-
Constructor Details
-
DataFrame
Class to represent a data frame- Parameters:
opcode
- the opcode to use
-
-
Method Details
-
isValid
Description copied from class:FramedataImpl1
Check if the frame is valid due to specification- Specified by:
isValid
in classFramedataImpl1
- Throws:
InvalidDataException
- thrown if the frame is not a valid frame
-