|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.protobuf.gwt.shared.JsonStreamFactory
com.google.protobuf.gwt.server.ServerJsonStreamFactory
public class ServerJsonStreamFactory
A factory class that makes it easy to switch between different server-side JsonStream implementations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.protobuf.gwt.shared.JsonStreamFactory |
---|
JsonStreamFactory.ImplementationType |
Field Summary | |
---|---|
protected static ServerJsonStreamFactory |
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 |
ServerJsonStreamFactory(JsonStreamFactory.ImplementationType implementationType)
|
Method Summary | |
---|---|
static ServerJsonStreamFactory |
createFactory(JsonStreamFactory.ImplementationType implementationType)
|
GsonJsonStream |
createNewStream(JsonStreamFactory.ImplementationType implementationType)
|
GsonJsonStream |
createNewStreamFromJson(String jsonText)
|
protected JsonStreamFactory.ImplementationType |
getImplementationType(com.google.gson.JsonObject jsonObject)
|
static ServerJsonStreamFactory |
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 |
---|
protected static ServerJsonStreamFactory instance
Constructor Detail |
---|
protected ServerJsonStreamFactory(JsonStreamFactory.ImplementationType implementationType)
Method Detail |
---|
public static ServerJsonStreamFactory getInstance()
public static ServerJsonStreamFactory createFactory(JsonStreamFactory.ImplementationType implementationType)
public GsonJsonStream createNewStream(JsonStreamFactory.ImplementationType implementationType)
createNewStream
in class JsonStreamFactory
public GsonJsonStream createNewStreamFromJson(String jsonText)
createNewStreamFromJson
in class JsonStreamFactory
protected JsonStreamFactory.ImplementationType getImplementationType(com.google.gson.JsonObject jsonObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |