public static class GsonModule.CredentialsAdapterFactory extends com.google.gson.TypeAdapter<Credentials> implements com.google.gson.TypeAdapterFactory
Constructor and Description |
---|
GsonModule.CredentialsAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> typeToken) |
Credentials |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
Credentials credentials) |
public GsonModule.CredentialsAdapterFactory()
public void write(com.google.gson.stream.JsonWriter out, Credentials credentials) throws IOException
write
in class com.google.gson.TypeAdapter<Credentials>
IOException
public Credentials read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<Credentials>
IOException
public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> typeToken)
create
in interface com.google.gson.TypeAdapterFactory
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.