org.glassfish.tyrus.platform.decoders
Class BinaryDecoderNoOp
java.lang.Object
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)
|
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 |
BinaryDecoderNoOp
public BinaryDecoderNoOp()
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.