org.glassfish.tyrus.platform.decoders
Class DoubleDecoder

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

public class DoubleDecoder
extends Object
implements Decoder.Text<Double>

Author:
dannycoward

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

DoubleDecoder

public DoubleDecoder()
Method Detail

decode

public Double 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<Double>
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<Double>


Copyright © 2012. All Rights Reserved.