org.glassfish.tyrus.platform.decoders
Class ByteDecoder

java.lang.Object
  extended by org.glassfish.tyrus.platform.decoders.ByteDecoder
All Implemented Interfaces:
Decoder, Decoder.Text<Byte>

public class ByteDecoder
extends Object
implements Decoder.Text<Byte>

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
ByteDecoder()
           
 
Method Summary
 Byte decode(String s)
          Decode the given String into an object of type T.
 boolean willDecode(String s)
          Answer whether the given String 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

ByteDecoder

public ByteDecoder()
Method Detail

decode

public Byte decode(String s)
            throws DecodeException
Description copied from interface: Decoder.Text
Decode the given String into an object of type T.

Specified by:
decode in interface Decoder.Text<Byte>
Throws:
DecodeException

willDecode

public boolean willDecode(String s)
Description copied from interface: Decoder.Text
Answer whether the given String can be decoded into an object of type T.

Specified by:
willDecode in interface Decoder.Text<Byte>


Copyright © 2012. All Rights Reserved.