Class ByteBufferDecoder
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
-
- org.eclipse.jetty.websocket.jsr356.decoders.ByteBufferDecoder
-
- All Implemented Interfaces:
javax.websocket.Decoder
,javax.websocket.Decoder.Binary<java.nio.ByteBuffer>
public class ByteBufferDecoder extends AbstractDecoder implements javax.websocket.Decoder.Binary<java.nio.ByteBuffer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.Decoder
javax.websocket.Decoder.Binary<T extends java.lang.Object>, javax.websocket.Decoder.BinaryStream<T extends java.lang.Object>, javax.websocket.Decoder.Text<T extends java.lang.Object>, javax.websocket.Decoder.TextStream<T extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static ByteBufferDecoder
INSTANCE
-
Constructor Summary
Constructors Constructor Description ByteBufferDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
decode(java.nio.ByteBuffer bytes)
boolean
willDecode(java.nio.ByteBuffer bytes)
-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
destroy, init
-
-
-
-
Field Detail
-
INSTANCE
public static final ByteBufferDecoder INSTANCE
-
-
Method Detail
-
decode
public java.nio.ByteBuffer decode(java.nio.ByteBuffer bytes) throws javax.websocket.DecodeException
- Specified by:
decode
in interfacejavax.websocket.Decoder.Binary<java.nio.ByteBuffer>
- Throws:
javax.websocket.DecodeException
-
willDecode
public boolean willDecode(java.nio.ByteBuffer bytes)
- Specified by:
willDecode
in interfacejavax.websocket.Decoder.Binary<java.nio.ByteBuffer>
-
-