@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>
IOException
protected 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>
IOException
Copyright © 2009-2012 jclouds. All Rights Reserved.