org.glassfish.tyrus.platform.decoders
Class BinaryDecoderNoOp

java.lang.Object
  extended by org.glassfish.tyrus.platform.decoders.BinaryDecoderNoOp
All Implemented Interfaces:
Decoder, Decoder.Binary

public class BinaryDecoderNoOp
extends Object
implements Decoder.Binary

Author:
stepan.kopriva(stepan.kopriva at oracle.com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.net.websocket.Decoder
Decoder.Binary<T>, Decoder.Text<T>
 
Constructor Summary
BinaryDecoderNoOp()
           
 
Method Summary
 byte[] 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryDecoderNoOp

public BinaryDecoderNoOp()
Method Detail

decode

public byte[] decode(byte[] bytes)
              throws DecodeException
Description copied from interface: Decoder.Binary
Decode the given bytes into an object of type T.

Specified by:
decode in interface Decoder.Binary
Throws:
DecodeException

willDecode

public boolean willDecode(byte[] bytes)
Description copied from interface: Decoder.Binary
Answer whether the given bytes can be decoded into an object of type T.

Specified by:
willDecode in interface Decoder.Binary


Copyright © 2012. All Rights Reserved.