org.jclouds.digitalocean.config
Class DigitalOceanParserModule.SshPublicKeyAdapter

java.lang.Object
  extended by com.google.gson.TypeAdapter<PublicKey>
      extended by org.jclouds.digitalocean.config.DigitalOceanParserModule.SshPublicKeyAdapter
Enclosing class:
DigitalOceanParserModule

@Singleton
public static class DigitalOceanParserModule.SshPublicKeyAdapter
extends com.google.gson.TypeAdapter<PublicKey>


Constructor Summary
DigitalOceanParserModule.SshPublicKeyAdapter()
           
 
Method Summary
 PublicKey read(com.google.gson.stream.JsonReader in)
           
 void write(com.google.gson.stream.JsonWriter out, PublicKey value)
           
 
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalOceanParserModule.SshPublicKeyAdapter

public DigitalOceanParserModule.SshPublicKeyAdapter()
Method Detail

write

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

read

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


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.