@Singleton
public abstract class NullHackJsonLiteralAdapter<L>
extends com.google.gson.TypeAdapter<L>
| Modifier and Type | Class and Description |
|---|---|
class |
NullHackJsonLiteralAdapter.NullReplacingWriter |
| Constructor and Description |
|---|
NullHackJsonLiteralAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract L |
createJsonLiteralFromRawJson(String json)
User supplied type that holds json literally.
|
protected Writer |
getWriter(com.google.gson.stream.JsonWriter arg0) |
L |
read(com.google.gson.stream.JsonReader reader) |
protected String |
toString(L value) |
void |
write(com.google.gson.stream.JsonWriter jsonWriter,
L value) |
public L read(com.google.gson.stream.JsonReader reader) throws IOException
read in class com.google.gson.TypeAdapter<L>IOExceptionprotected abstract L createJsonLiteralFromRawJson(String json)
8, boolean as true
, string as "value", object as , list {@code []}.public void write(com.google.gson.stream.JsonWriter jsonWriter,
L value)
throws IOException
write in class com.google.gson.TypeAdapter<L>IOExceptionprotected Writer getWriter(com.google.gson.stream.JsonWriter arg0)
Copyright © 2009-2013 jclouds. All Rights Reserved.