javax.net.websocket
Interface Decoder.Binary<T>

All Superinterfaces:
Decoder
Enclosing interface:
Decoder

public static interface Decoder.Binary<T>
extends Decoder

This interface defines how binary messages are converted.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.net.websocket.Decoder
Decoder.Binary<T>, Decoder.Text<T>
 
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.
 

Method Detail

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.