org.atmosphere.gwt.shared.server
Class GwtRpcUtil

java.lang.Object
  extended by org.atmosphere.gwt.shared.server.GwtRpcUtil

public class GwtRpcUtil
extends Object

Author:
p.havelaar

Constructor Summary
GwtRpcUtil()
           
 
Method Summary
static Object deserialize(String data)
           
static com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy()
           
static com.google.gwt.user.server.rpc.SerializationPolicyProvider getSerializationPolicyProvider()
           
static String readerToString(BufferedReader r)
           
static String serialize(Object message)
           
static String streamToString(InputStream in, String charset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtRpcUtil

public GwtRpcUtil()
Method Detail

getSerializationPolicyProvider

public static com.google.gwt.user.server.rpc.SerializationPolicyProvider getSerializationPolicyProvider()

getSerializationPolicy

public static com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy()

streamToString

public static String streamToString(InputStream in,
                                    String charset)
                             throws IOException,
                                    UnsupportedEncodingException
Throws:
IOException
UnsupportedEncodingException

readerToString

public static String readerToString(BufferedReader r)
                             throws IOException
Throws:
IOException

deserialize

public static Object deserialize(String data)
                          throws com.google.gwt.user.client.rpc.SerializationException
Throws:
com.google.gwt.user.client.rpc.SerializationException

serialize

public static String serialize(Object message)
                        throws com.google.gwt.user.client.rpc.SerializationException
Throws:
com.google.gwt.user.client.rpc.SerializationException


Copyright © 2013. All Rights Reserved.