javax.net.websocket
Interface Decoder.Binary<T>
- All Superinterfaces:
- Decoder
- All Known Implementing Classes:
- BinaryDecoderNoOp
- Enclosing interface:
- Decoder
public static interface Decoder.Binary<T>
- extends Decoder
This interface defines how binary messages are converted.
|
Method Summary |
T |
decode(byte[] bytes)
Decode the given bytes into an object of type T. |
boolean |
willDecode(byte[] bytes)
Answer whether the given bytes can be decoded into an object of type T. |
decode
T decode(byte[] bytes)
throws DecodeException
- Decode the given bytes into an object of type T.
- Throws:
DecodeException
willDecode
boolean willDecode(byte[] bytes)
- Answer whether the given bytes can be decoded into an object of type T.
Copyright © 2012. All Rights Reserved.