org.jclouds.json.config
Class GsonModule.PropertiesAdapter

java.lang.Object
  extended by com.google.gson.TypeAdapter<Properties>
      extended by org.jclouds.json.config.GsonModule.PropertiesAdapter
Enclosing class:
GsonModule

@Singleton
public static class GsonModule.PropertiesAdapter
extends com.google.gson.TypeAdapter<Properties>


Constructor Summary
GsonModule.PropertiesAdapter(javax.inject.Provider<com.google.gson.Gson> gson)
           
 
Method Summary
 Properties read(com.google.gson.stream.JsonReader in)
           
 void write(com.google.gson.stream.JsonWriter out, Properties value)
           
 
Methods inherited from class com.google.gson.TypeAdapter
nullSafe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsonModule.PropertiesAdapter

@Inject
public GsonModule.PropertiesAdapter(javax.inject.Provider<com.google.gson.Gson> gson)
Method Detail

write

public void write(com.google.gson.stream.JsonWriter out,
                  Properties value)
           throws IOException
Specified by:
write in class com.google.gson.TypeAdapter<Properties>
Throws:
IOException

read

public Properties read(com.google.gson.stream.JsonReader in)
                throws IOException
Specified by:
read in class com.google.gson.TypeAdapter<Properties>
Throws:
IOException


Copyright © 2009-2012 jclouds. All Rights Reserved.