enc
Class JSONDecoder

java.lang.Object
  extended by enc.JSONDecoder
All Implemented Interfaces:
Decoder, Decoder.Text<org.json.JSONObject>

public class JSONDecoder
extends java.lang.Object
implements Decoder.Text<org.json.JSONObject>

Author:
dannycoward

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.net.websocket.Decoder
Decoder.Binary<T>, Decoder.Text<T>
 
Constructor Summary
JSONDecoder()
           
 
Method Summary
 org.json.JSONObject decode(java.lang.String s)
           
 boolean willDecode(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONDecoder

public JSONDecoder()
Method Detail

decode

public org.json.JSONObject decode(java.lang.String s)
                           throws DecodeException
Specified by:
decode in interface Decoder.Text<org.json.JSONObject>
Throws:
DecodeException

willDecode

public boolean willDecode(java.lang.String s)
Specified by:
willDecode in interface Decoder.Text<org.json.JSONObject>


Copyright © 2012. All Rights Reserved.