com.google.protobuf.gwt.client
Class ClientJsonStreamFactory

java.lang.Object
  extended by com.google.protobuf.gwt.shared.JsonStreamFactory
      extended by com.google.protobuf.gwt.client.ClientJsonStreamFactory

public class ClientJsonStreamFactory
extends JsonStreamFactory

A factory class that makes it easy to switch between different client-side JsonStream implementations.

Author:
vkulikov@alum.mit.edu Vitaliy Kulikov

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.protobuf.gwt.shared.JsonStreamFactory
JsonStreamFactory.ImplementationType
 
Field Summary
protected static ClientJsonStreamFactory instance
           
 
Fields inherited from class com.google.protobuf.gwt.shared.JsonStreamFactory
COMPACT_JSON_STREAM_IMPLEMENTATION_PARAMETER_VALUE, DEFAULT_IMPLEMENTATION_TYPE, implementationType, JSON_ENCODING_PARAMETER_KEY, VERBOSE_JSON_STREAM_IMPLEMENTATION_PARAMETER_VALUE
 
Constructor Summary
protected ClientJsonStreamFactory(JsonStreamFactory.ImplementationType implementationType)
           
 
Method Summary
static ClientJsonStreamFactory createFactory(JsonStreamFactory.ImplementationType implementationType)
           
 JsonStream createNewStream(JsonStreamFactory.ImplementationType implementationType)
           
 GWTJsonStream createNewStreamFromJson(String jsonText)
           
protected  JsonStreamFactory.ImplementationType getImplementationType(com.google.gwt.json.client.JSONObject jsonObject)
           
static ClientJsonStreamFactory getInstance()
           
 
Methods inherited from class com.google.protobuf.gwt.shared.JsonStreamFactory
createNewStream, createNewStreamFromMessage, createNewStreamFromMessage, equals, getImplementationType, serializeMessage, serializeMessage, serializeMessage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static ClientJsonStreamFactory instance
Constructor Detail

ClientJsonStreamFactory

protected ClientJsonStreamFactory(JsonStreamFactory.ImplementationType implementationType)
Method Detail

getInstance

public static ClientJsonStreamFactory getInstance()

createFactory

public static ClientJsonStreamFactory createFactory(JsonStreamFactory.ImplementationType implementationType)

createNewStream

public JsonStream createNewStream(JsonStreamFactory.ImplementationType implementationType)
Specified by:
createNewStream in class JsonStreamFactory

createNewStreamFromJson

public GWTJsonStream createNewStreamFromJson(String jsonText)
Specified by:
createNewStreamFromJson in class JsonStreamFactory

getImplementationType

protected JsonStreamFactory.ImplementationType getImplementationType(com.google.gwt.json.client.JSONObject jsonObject)


Copyright © 2014 InMobi. All rights reserved.