public final class GsonParserFactory
extends java.lang.Object
Parser implementations.| Modifier and Type | Method and Description |
|---|---|
static <T> com.nytimes.android.external.store3.base.Parser<java.io.Reader,T> |
createReaderParser(com.google.gson.Gson gson,
java.lang.reflect.Type type)
Returns a new Parser which parses from
Reader to the specified type, using
the provided Gson instance. |
static <T> com.nytimes.android.external.store3.base.Parser<java.io.Reader,T> |
createReaderParser(java.lang.reflect.Type type)
Returns a new Parser which parses from
Reader to the specified type, using
a new default configured Gson instance. |
static <T> com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,T> |
createSourceParser(com.google.gson.Gson gson,
java.lang.reflect.Type type)
Returns a new Parser which parses from
BufferedSource to the specified type, using
the provided Gson instance. |
static <T> com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,T> |
createSourceParser(java.lang.reflect.Type type)
Returns a new Parser which parses from
Reader to the specified type, using
a new default configured Gson instance. |
static <T> com.nytimes.android.external.store3.base.Parser<java.lang.String,T> |
createStringParser(java.lang.Class<T> type)
Returns a new Parser which parses from a String to the specified type, using
a new default
Gson instance. |
static <T> com.nytimes.android.external.store3.base.Parser<java.lang.String,T> |
createStringParser(com.google.gson.Gson gson,
java.lang.reflect.Type type)
Returns a new Parser which parses from a String to the specified type, using
the provided
Gson instance. |
@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<java.io.Reader,T> createReaderParser(@Nonnull
java.lang.reflect.Type type)
Reader to the specified type, using
a new default configured Gson instance.@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<java.io.Reader,T> createReaderParser(@Nonnull
com.google.gson.Gson gson,
@Nonnull
java.lang.reflect.Type type)
Reader to the specified type, using
the provided Gson instance.@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,T> createSourceParser(@Nonnull
java.lang.reflect.Type type)
Reader to the specified type, using
a new default configured Gson instance.@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<okio.BufferedSource,T> createSourceParser(@Nonnull
com.google.gson.Gson gson,
@Nonnull
java.lang.reflect.Type type)
BufferedSource to the specified type, using
the provided Gson instance.@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<java.lang.String,T> createStringParser(@Nonnull
java.lang.Class<T> type)
Gson instance.@Nonnull
public static <T> com.nytimes.android.external.store3.base.Parser<java.lang.String,T> createStringParser(@Nonnull
com.google.gson.Gson gson,
@Nonnull
java.lang.reflect.Type type)
Gson instance.