- java.lang.Object
-
- swim.ws.WsFrame<T>
-
- swim.ws.WsDataFrame<T>
-
- swim.ws.WsBinaryFrame<T>
-
- All Implemented Interfaces:
Debug
public final class WsBinaryFrame<T> extends WsDataFrame<T> implements Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WsBinaryFrame<ByteBuffer>
create(ByteBuffer payloadValue)
static <T> WsBinaryFrame<T>
create(Encoder<?,?> payloadEncoder)
static WsBinaryFrame<Data>
create(Data payloadValue)
static <T> WsBinaryFrame<T>
create(T payloadValue, Encoder<?,?> payloadEncoder)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static <T> WsBinaryFrame<T>
empty()
boolean
equals(Object other)
WsOpcode
frameType()
int
hashCode()
Encoder<?,?>
payloadEncoder(WsEncoder ws)
T
payloadValue()
String
toString()
-
-
-
Method Detail
-
payloadValue
public T payloadValue()
- Specified by:
payloadValue
in classWsDataFrame<T>
-
payloadEncoder
public Encoder<?,?> payloadEncoder(WsEncoder ws)
- Specified by:
payloadEncoder
in classWsFrame<T>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
empty
public static <T> WsBinaryFrame<T> empty()
-
create
public static <T> WsBinaryFrame<T> create(T payloadValue, Encoder<?,?> payloadEncoder)
-
create
public static WsBinaryFrame<ByteBuffer> create(ByteBuffer payloadValue)
-
create
public static WsBinaryFrame<Data> create(Data payloadValue)
-
create
public static <T> WsBinaryFrame<T> create(Encoder<?,?> payloadEncoder)
-
-