org.glassfish.tyrus.sample.draw
Class DrawingMessage

java.lang.Object
  extended by org.glassfish.tyrus.sample.draw.DrawingMessage
All Implemented Interfaces:
Decoder, Decoder.Text<DrawingMessage>, Encoder, Encoder.Text<DrawingMessage>

public class DrawingMessage
extends Object
implements Decoder.Text<DrawingMessage>, Encoder.Text<DrawingMessage>

Author:
Danny Coward (danny.coward at oracle.com)

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

Constructor Detail

DrawingMessage

public DrawingMessage()
Method Detail

decode

public DrawingMessage decode(String s)
                      throws DecodeException
Specified by:
decode in interface Decoder.Text<DrawingMessage>
Throws:
DecodeException

willDecode

public boolean willDecode(String s)
Specified by:
willDecode in interface Decoder.Text<DrawingMessage>

getJSONObject

public org.json.JSONObject getJSONObject()

encode

public String encode(DrawingMessage data)
              throws EncodeException
Specified by:
encode in interface Encoder.Text<DrawingMessage>
Throws:
EncodeException


Copyright © 2012. All Rights Reserved.