@Singleton public abstract class NullHackJsonLiteralAdapter<L> extends com.google.gson.TypeAdapter<L>
| Constructor and Description |
|---|
NullHackJsonLiteralAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract L |
createJsonLiteralFromRawJson(String json)
User supplied type that holds json literally.
|
L |
read(com.google.gson.stream.JsonReader reader) |
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>IOExceptionCopyright © 2009-2012 jclouds. All Rights Reserved.