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

All Superinterfaces:
Decoder
All Known Implementing Classes:
BooleanDecoder, ByteDecoder, CharDecoder, DoubleDecoder, FloatDecoder, IntegerDecoder, LongDecoder, ShortDecoder, StringDecoderNoOp
Enclosing interface:
Decoder

public static interface Decoder.Text<T>
extends Decoder

This interface defines how text 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(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.
 

Method Detail

decode

T decode(String s)
         throws DecodeException
Decode the given String into an object of type T.

Throws:
DecodeException

willDecode

boolean willDecode(String s)
Answer whether the given String can be decoded into an object of type T.



Copyright © 2012. All Rights Reserved.