From 49525c8d6443f1c623f29c40a7df56ac33308589 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Sat, 31 Dec 2011 07:53:30 +0000 Subject: [PATCH] Javadocs for Gson 2.1 --- gson/docs/javadocs/allclasses-frame.html | 10 +- gson/docs/javadocs/allclasses-noframe.html | 10 +- .../com/google/gson/ExclusionStrategy.html | 12 +- .../com/google/gson/FieldAttributes.html | 89 ++-- .../com/google/gson/FieldNamingPolicy.html | 67 ++- .../com/google/gson/FieldNamingStrategy.html | 17 +- gson/docs/javadocs/com/google/gson/Gson.html | 218 ++++++---- .../javadocs/com/google/gson/GsonBuilder.html | 114 +++-- .../com/google/gson/InstanceCreator.html | 14 +- .../javadocs/com/google/gson/JsonArray.html | 114 ++--- .../gson/JsonDeserializationContext.html | 12 +- .../com/google/gson/JsonDeserializer.html | 15 +- .../javadocs/com/google/gson/JsonElement.html | 124 +++--- .../com/google/gson/JsonIOException.html | 42 +- .../javadocs/com/google/gson/JsonNull.html | 24 +- .../javadocs/com/google/gson/JsonObject.html | 86 ++-- .../com/google/gson/JsonParseException.html | 48 +-- .../javadocs/com/google/gson/JsonParser.html | 24 +- .../com/google/gson/JsonPrimitive.html | 86 ++-- .../google/gson/JsonSerializationContext.html | 20 +- .../com/google/gson/JsonSerializer.html | 15 +- .../com/google/gson/JsonStreamParser.html | 36 +- .../com/google/gson/JsonSyntaxException.html | 42 +- .../google/gson/LongSerializationPolicy.html | 42 +- .../javadocs/com/google/gson/TypeAdapter.html | 408 ++++++++++++++++++ .../com/google/gson/TypeAdapterFactory.html | 354 +++++++++++++++ .../com/google/gson/annotations/Expose.html | 12 +- .../gson/annotations/SerializedName.html | 16 +- .../com/google/gson/annotations/Since.html | 12 +- .../com/google/gson/annotations/Until.html | 12 +- .../gson/annotations/class-use/Expose.html | 8 +- .../annotations/class-use/SerializedName.html | 8 +- .../gson/annotations/class-use/Since.html | 8 +- .../gson/annotations/class-use/Until.html | 8 +- .../gson/annotations/package-frame.html | 6 +- .../gson/annotations/package-summary.html | 8 +- .../google/gson/annotations/package-tree.html | 16 +- .../google/gson/annotations/package-use.html | 8 +- .../gson/class-use/ExclusionStrategy.html | 8 +- .../gson/class-use/FieldAttributes.html | 8 +- .../gson/class-use/FieldNamingPolicy.html | 10 +- .../gson/class-use/FieldNamingStrategy.html | 24 +- .../com/google/gson/class-use/Gson.html | 33 +- .../google/gson/class-use/GsonBuilder.html | 26 +- .../gson/class-use/InstanceCreator.html | 8 +- .../com/google/gson/class-use/JsonArray.html | 10 +- .../class-use/JsonDeserializationContext.html | 10 +- .../gson/class-use/JsonDeserializer.html | 8 +- .../google/gson/class-use/JsonElement.html | 52 +-- .../gson/class-use/JsonIOException.html | 36 +- .../com/google/gson/class-use/JsonNull.html | 8 +- .../com/google/gson/class-use/JsonObject.html | 10 +- .../gson/class-use/JsonParseException.html | 12 +- .../com/google/gson/class-use/JsonParser.html | 8 +- .../google/gson/class-use/JsonPrimitive.html | 10 +- .../class-use/JsonSerializationContext.html | 10 +- .../google/gson/class-use/JsonSerializer.html | 8 +- .../gson/class-use/JsonStreamParser.html | 8 +- .../gson/class-use/JsonSyntaxException.html | 34 +- .../class-use/LongSerializationPolicy.html | 10 +- .../google/gson/class-use/TypeAdapter.html | 229 ++++++++++ .../gson/class-use/TypeAdapterFactory.html | 182 ++++++++ .../com/google/gson/package-frame.html | 14 +- .../com/google/gson/package-summary.html | 16 +- .../com/google/gson/package-tree.html | 31 +- .../javadocs/com/google/gson/package-use.html | 20 +- .../com/google/gson/reflect/TypeToken.html | 60 +-- .../gson/reflect/class-use/TypeToken.html | 66 ++- .../google/gson/reflect/package-frame.html | 6 +- .../google/gson/reflect/package-summary.html | 8 +- .../com/google/gson/reflect/package-tree.html | 10 +- .../com/google/gson/reflect/package-use.html | 28 +- .../com/google/gson/stream/JsonReader.html | 134 +++--- .../com/google/gson/stream/JsonToken.html | 32 +- .../com/google/gson/stream/JsonWriter.html | 116 ++--- .../gson/stream/MalformedJsonException.html | 44 +- .../gson/stream/class-use/JsonReader.html | 19 +- .../gson/stream/class-use/JsonToken.html | 10 +- .../gson/stream/class-use/JsonWriter.html | 28 +- .../class-use/MalformedJsonException.html | 8 +- .../com/google/gson/stream/package-frame.html | 6 +- .../google/gson/stream/package-summary.html | 8 +- .../com/google/gson/stream/package-tree.html | 24 +- .../com/google/gson/stream/package-use.html | 8 +- gson/docs/javadocs/constant-values.html | 8 +- gson/docs/javadocs/deprecated-list.html | 8 +- gson/docs/javadocs/help-doc.html | 8 +- gson/docs/javadocs/index-all.html | 79 +++- gson/docs/javadocs/index.html | 4 +- gson/docs/javadocs/overview-frame.html | 6 +- gson/docs/javadocs/overview-summary.html | 10 +- gson/docs/javadocs/overview-tree.html | 45 +- gson/docs/javadocs/serialized-form.html | 12 +- 93 files changed, 2678 insertions(+), 1125 deletions(-) create mode 100644 gson/docs/javadocs/com/google/gson/TypeAdapter.html create mode 100644 gson/docs/javadocs/com/google/gson/TypeAdapterFactory.html create mode 100644 gson/docs/javadocs/com/google/gson/class-use/TypeAdapter.html create mode 100644 gson/docs/javadocs/com/google/gson/class-use/TypeAdapterFactory.html diff --git a/gson/docs/javadocs/allclasses-frame.html b/gson/docs/javadocs/allclasses-frame.html index cb7d7ec7..f4b9552f 100644 --- a/gson/docs/javadocs/allclasses-frame.html +++ b/gson/docs/javadocs/allclasses-frame.html @@ -2,13 +2,13 @@ - + -All Classes (Gson 2.1-SNAPSHOT API) +All Classes (Gson 2.1 API) - + @@ -80,6 +80,10 @@ All Classes (Gson 2.1-SNAPSHOT API)
Since
+TypeAdapter +
+TypeAdapterFactory +
TypeToken
Until diff --git a/gson/docs/javadocs/allclasses-noframe.html b/gson/docs/javadocs/allclasses-noframe.html index 2e603632..b47351cc 100644 --- a/gson/docs/javadocs/allclasses-noframe.html +++ b/gson/docs/javadocs/allclasses-noframe.html @@ -2,13 +2,13 @@ - + -All Classes (Gson 2.1-SNAPSHOT API) +All Classes (Gson 2.1 API) - + @@ -80,6 +80,10 @@ All Classes (Gson 2.1-SNAPSHOT API)
Since
+TypeAdapter +
+TypeAdapterFactory +
TypeToken
Until diff --git a/gson/docs/javadocs/com/google/gson/ExclusionStrategy.html b/gson/docs/javadocs/com/google/gson/ExclusionStrategy.html index 1724501d..5c017a8f 100644 --- a/gson/docs/javadocs/com/google/gson/ExclusionStrategy.html +++ b/gson/docs/javadocs/com/google/gson/ExclusionStrategy.html @@ -2,13 +2,13 @@ - + -ExclusionStrategy (Gson 2.1-SNAPSHOT API) +ExclusionStrategy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ ExclusionStrategy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="ExclusionStrategy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="ExclusionStrategy (Gson 2.1 API)"; } } @@ -190,7 +190,7 @@ A strategy (or policy) definition that is used to decide whether or not a field  boolean -shouldSkipClass(Class<?> clazz) +shouldSkipClass(Class<?> clazz)
            @@ -232,7 +232,7 @@ boolean shouldSkipField(

shouldSkipClass

-boolean shouldSkipClass(Class<?> clazz)
+boolean shouldSkipClass(Class<?> clazz)
Parameters:
clazz - the class object that is under test diff --git a/gson/docs/javadocs/com/google/gson/FieldAttributes.html b/gson/docs/javadocs/com/google/gson/FieldAttributes.html index c0082599..bc3f5519 100644 --- a/gson/docs/javadocs/com/google/gson/FieldAttributes.html +++ b/gson/docs/javadocs/com/google/gson/FieldAttributes.html @@ -2,13 +2,13 @@ - + -FieldAttributes (Gson 2.1-SNAPSHOT API) +FieldAttributes (Gson 2.1 API) - + @@ -16,7 +16,7 @@ FieldAttributes (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="FieldAttributes (Gson 2.1-SNAPSHOT API)"; + parent.document.title="FieldAttributes (Gson 2.1 API)"; } } @@ -77,9 +77,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -93,12 +93,12 @@ com.google.gson
Class FieldAttributes
-java.lang.Object
+java.lang.Object
   extended by com.google.gson.FieldAttributes
 

-
public final class FieldAttributes
extends Object
+
public final class FieldAttributes
extends Object

@@ -118,6 +118,22 @@ A data object that stores attributes of a field.

+ + + + + + + + + + +
+Constructor Summary
FieldAttributes(Field f) + +
+          Constructs a Field Attributes object from the f.
@@ -132,13 +148,13 @@ A data object that stores attributes of a field.
-<T extends Annotation> +<T extends Annotation>
T
-getAnnotation(Class<T> annotation) +getAnnotation(Class<T> annotation)
          Return the T annotation object from this field if it exist; otherwise returns @@ -146,7 +162,7 @@ T - Collection<Annotation> + Collection<Annotation> getAnnotations()
@@ -154,7 +170,7 @@ T - Class<?> + Class<?> getDeclaredClass()
@@ -162,7 +178,7 @@ T - Type + Type getDeclaredType()
@@ -177,7 +193,7 @@ T - Class<?> + Class<?> getDeclaringClass()
@@ -185,7 +201,7 @@ T - String + String getName()
@@ -203,15 +219,36 @@ T   - + - +
Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

+ + + + + + + +
+Constructor Detail
+ +

+FieldAttributes

+
+public FieldAttributes(Field f)
+
+
Constructs a Field Attributes object from the f. +

+

+
Parameters:
f - the field to pull attributes from
+
+ @@ -225,7 +262,7 @@ T

getDeclaringClass

-public Class<?> getDeclaringClass()
+public Class<?> getDeclaringClass()
@@ -237,7 +274,7 @@ public

getName

-public String getName()
+public String getName()
@@ -249,7 +286,7 @@ public

getDeclaredType

-public Type getDeclaredType()
+public Type getDeclaredType()

For example, assume the following class definition:

@@ -274,7 +311,7 @@ public 

getDeclaredClass

-public Class<?> getDeclaredClass()
+public Class<?> getDeclaredClass()
Returns the Class object that was declared for this field. @@ -299,7 +336,7 @@ public

getAnnotation

-public <T extends Annotation> T getAnnotation(Class<T> annotation)
+public <T extends Annotation> T getAnnotation(Class<T> annotation)
Return the T annotation object from this field if it exist; otherwise returns null. @@ -314,7 +351,7 @@ public <T extends

getAnnotations

-public Collection<Annotation> getAnnotations()
+public Collection<Annotation> getAnnotations()
Return the annotations that are present on this field.

@@ -340,7 +377,7 @@ public boolean hasModifier(int modifier)

-
See Also:
Modifier
+
See Also:
Modifier
@@ -395,9 +432,9 @@ public boolean hasModifier(int modifier) - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD diff --git a/gson/docs/javadocs/com/google/gson/FieldNamingPolicy.html b/gson/docs/javadocs/com/google/gson/FieldNamingPolicy.html index d869893e..c7ad6951 100644 --- a/gson/docs/javadocs/com/google/gson/FieldNamingPolicy.html +++ b/gson/docs/javadocs/com/google/gson/FieldNamingPolicy.html @@ -2,13 +2,13 @@ - + -FieldNamingPolicy (Gson 2.1-SNAPSHOT API) +FieldNamingPolicy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ FieldNamingPolicy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="FieldNamingPolicy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="FieldNamingPolicy (Gson 2.1 API)"; } } @@ -93,16 +93,16 @@ com.google.gson
Enum FieldNamingPolicy
-java.lang.Object
-  extended by java.lang.Enum<FieldNamingPolicy>
+java.lang.Object
+  extended by java.lang.Enum<FieldNamingPolicy>
       extended by com.google.gson.FieldNamingPolicy
 
-
All Implemented Interfaces:
Serializable, Comparable<FieldNamingPolicy>
+
All Implemented Interfaces:
FieldNamingStrategy, Serializable, Comparable<FieldNamingPolicy>

-
public enum FieldNamingPolicy
extends Enum<FieldNamingPolicy>
+
public enum FieldNamingPolicy
extends Enum<FieldNamingPolicy>
implements FieldNamingStrategy

@@ -129,6 +129,13 @@ An enumeration that defines a few standard naming conventions for JSON field nam Enum Constant Summary +IDENTITY + +
+          Using this naming policy with Gson will ensure that the field name is + unchanged. + + LOWER_CASE_WITH_DASHES
@@ -170,7 +177,7 @@ An enumeration that defines a few standard naming conventions for JSON field nam static FieldNamingPolicy -valueOf(String name) +valueOf(String name)
          Returns the enum constant of this type with the specified name. @@ -188,19 +195,28 @@ the order they are declared.   - + - +
Methods inherited from class java.lang.EnumMethods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcompareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
  - + - + + +
Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
+ + + + + +
Methods inherited from interface com.google.gson.FieldNamingStrategy
translateName
  @@ -216,6 +232,19 @@ the order they are declared. +

+IDENTITY

+
+public static final FieldNamingPolicy IDENTITY
+
+
Using this naming policy with Gson will ensure that the field name is + unchanged. +

+

+
+
+
+

UPPER_CAMEL_CASE

@@ -328,6 +357,9 @@ for (FieldNamingPolicy c : FieldNamingPolicy.values())
 

+
+
+
Returns:
an array containing the constants of this enum type, in the order they are declared
@@ -338,7 +370,7 @@ the order they are declared

valueOf

-public static FieldNamingPolicy valueOf(String name)
+public static FieldNamingPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an @@ -346,12 +378,15 @@ enum constant in this type. (Extraneous whitespace characters are not permitted.)

+
+
+
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws: -
IllegalArgumentException - if this enum type has no constant +
IllegalArgumentException - if this enum type has no constant with the specified name -
NullPointerException - if the argument is null
+
NullPointerException - if the argument is null
diff --git a/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html b/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html index a8c37ec2..f964eb3c 100644 --- a/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html +++ b/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html @@ -2,13 +2,13 @@ - + -FieldNamingStrategy (Gson 2.1-SNAPSHOT API) +FieldNamingStrategy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ FieldNamingStrategy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="FieldNamingStrategy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="FieldNamingStrategy (Gson 2.1 API)"; } } @@ -92,6 +92,9 @@ DETAIL: FIELD | CONSTR | METHO com.google.gson
Interface FieldNamingStrategy +
+
All Known Implementing Classes:
FieldNamingPolicy
+

public interface FieldNamingStrategy
@@ -124,8 +127,8 @@ A mechanism for providing custom field naming in Gson. This allows the client c - String -translateName(Field f) + String +translateName(Field f)
          Translates the field name into its JSON field name representation. @@ -147,7 +150,7 @@ A mechanism for providing custom field naming in Gson. This allows the client c

translateName

-String translateName(Field f)
+String translateName(Field f)
Translates the field name into its JSON field name representation.

diff --git a/gson/docs/javadocs/com/google/gson/Gson.html b/gson/docs/javadocs/com/google/gson/Gson.html index c1140c5a..0ffe83bd 100644 --- a/gson/docs/javadocs/com/google/gson/Gson.html +++ b/gson/docs/javadocs/com/google/gson/Gson.html @@ -2,13 +2,13 @@ - + -Gson (Gson 2.1-SNAPSHOT API) +Gson (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Gson (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Gson (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Gson (Gson 2.1 API)"; } } @@ -93,12 +93,12 @@ com.google.gson
Class Gson

-java.lang.Object
+java.lang.Object
   extended by com.google.gson.Gson
 

-
public final class Gson
extends Object
+
public final class Gson
extends Object

@@ -183,7 +183,7 @@ This is the main class for using Gson. Gson is typically used by first construct fromJson(JsonElement json, - Class<T> classOfT) + Class<T> classOfT)
          This method deserializes the Json read from the specified parse tree into an object of the @@ -200,7 +200,7 @@ This is the main class for using Gson. Gson is typically used by first construct fromJson(JsonElement json, - Type typeOfT) + Type typeOfT)
          This method deserializes the Json read from the specified parse tree into an object of the @@ -217,7 +217,7 @@ This is the main class for using Gson. Gson is typically used by first construct fromJson(JsonReader reader, - Type typeOfT) + Type typeOfT)
          Reads the next JSON value from reader and convert it to an object @@ -233,8 +233,8 @@ This is the main class for using Gson. Gson is typically used by first construct -fromJson(Reader json, - Class<T> classOfT) +fromJson(Reader json, + Class<T> classOfT)
          This method deserializes the Json read from the specified reader into an object of the @@ -250,8 +250,8 @@ This is the main class for using Gson. Gson is typically used by first construct -fromJson(Reader json, - Type typeOfT) +fromJson(Reader json, + Type typeOfT)
          This method deserializes the Json read from the specified reader into an object of the @@ -267,8 +267,8 @@ This is the main class for using Gson. Gson is typically used by first construct -fromJson(String json, - Class<T> classOfT) +fromJson(String json, + Class<T> classOfT)
          This method deserializes the specified Json into an object of the specified class. @@ -283,15 +283,45 @@ This is the main class for using Gson. Gson is typically used by first construct -fromJson(String json, - Type typeOfT) +fromJson(String json, + Type typeOfT)
          This method deserializes the specified Json into an object of the specified type. - String + + + + + +
+<T> TypeAdapter<T>
+
+getAdapter(Class<T> type) + +
+          Returns the type adapter for type. + + + + + + + + +
+<T> TypeAdapter<T>
+
+getAdapter(TypeToken<T> type) + +
+          Returns the type adapter for type. + + + + String toJson(JsonElement jsonElement)
@@ -301,7 +331,7 @@ This is the main class for using Gson. Gson is typically used by first construct  void toJson(JsonElement jsonElement, - Appendable writer) + Appendable writer)
          Writes out the equivalent JSON for a tree of JsonElements. @@ -317,8 +347,8 @@ This is the main class for using Gson. Gson is typically used by first construct - String -toJson(Object src) + String +toJson(Object src)
          This method serializes the specified object into its equivalent Json representation. @@ -326,17 +356,17 @@ This is the main class for using Gson. Gson is typically used by first construct  void -toJson(Object src, - Appendable writer) +toJson(Object src, + Appendable writer)
          This method serializes the specified object into its equivalent Json representation. - String -toJson(Object src, - Type typeOfSrc) + String +toJson(Object src, + Type typeOfSrc)
          This method serializes the specified object, including those of generic types, into its @@ -345,9 +375,9 @@ This is the main class for using Gson. Gson is typically used by first construct  void -toJson(Object src, - Type typeOfSrc, - Appendable writer) +toJson(Object src, + Type typeOfSrc, + Appendable writer)
          This method serializes the specified object, including those of generic types, into its @@ -356,8 +386,8 @@ This is the main class for using Gson. Gson is typically used by first construct  void -toJson(Object src, - Type typeOfSrc, +toJson(Object src, + Type typeOfSrc, JsonWriter writer)
@@ -367,7 +397,7 @@ This is the main class for using Gson. Gson is typically used by first construct  JsonElement -toJsonTree(Object src) +toJsonTree(Object src)
          This method serializes the specified object into its equivalent representation as a tree of @@ -376,8 +406,8 @@ This is the main class for using Gson. Gson is typically used by first construct  JsonElement -toJsonTree(Object src, - Type typeOfSrc) +toJsonTree(Object src, + Type typeOfSrc)
          This method serializes the specified object, including those of generic types, into its @@ -385,7 +415,7 @@ This is the main class for using Gson. Gson is typically used by first construct - String + String toString()
@@ -395,10 +425,10 @@ This is the main class for using Gson. Gson is typically used by first construct   - + - +
Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  @@ -429,12 +459,12 @@ public Gson() kept as is since an array is an ordered list. Moreover, if a field is not null, but its generated JSON is empty, the field is kept. You can configure Gson to serialize null values by setting GsonBuilder.serializeNulls(). -

  • Gson provides default serialization and deserialization for Enums, Map, - URL, URI, Locale, Date, - BigDecimal, and BigInteger classes. If you would prefer +
  • Gson provides default serialization and deserialization for Enums, Map, + URL, URI, Locale, Date, + BigDecimal, and BigInteger classes. If you would prefer to change the default representation, you can do so by registering a type adapter through GsonBuilder.registerTypeAdapter(Type, Object).
  • -
  • The default Date format is same as DateFormat.DEFAULT. This format +
  • The default Date format is same as DateFormat.DEFAULT. This format ignores the millisecond portion of the date during serialization. You can change this by invoking GsonBuilder.setDateFormat(int) or GsonBuilder.setDateFormat(String).
  • @@ -464,14 +494,46 @@ public Gson() +

    +getAdapter

    +
    +public <T> TypeAdapter<T> getAdapter(TypeToken<T> type)
    +
    +
    Returns the type adapter for type. +

    +

    + +
    Throws: +
    IllegalArgumentException - if this GSON cannot serialize and + deserialize type.
    +
    +
    +
    + +

    +getAdapter

    +
    +public <T> TypeAdapter<T> getAdapter(Class<T> type)
    +
    +
    Returns the type adapter for type. +

    +

    + +
    Throws: +
    IllegalArgumentException - if this GSON cannot serialize and + deserialize type.
    +
    +
    +
    +

    toJsonTree

    -public JsonElement toJsonTree(Object src)
    +public JsonElement toJsonTree(Object src)
    This method serializes the specified object into its equivalent representation as a tree of JsonElements. This method should be used when the specified object is not a generic - type. This method uses Object.getClass() to get the type for the specified object, but + type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use @@ -489,8 +551,8 @@ public

    toJsonTree

    -public JsonElement toJsonTree(Object src,
    -                              Type typeOfSrc)
    +public JsonElement toJsonTree(Object src, + Type typeOfSrc)
    This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the @@ -514,16 +576,16 @@ public

    toJson

    -public String toJson(Object src)
    +public String toJson(Object src)
    This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses - Object.getClass() to get the type for the specified object, but the + Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a - Writer, use toJson(Object, Appendable) instead. + Writer, use toJson(Object, Appendable) instead.

    Parameters:
    src - the object for which Json representation is to be created setting for Gson @@ -535,13 +597,13 @@ public

    toJson

    -public String toJson(Object src,
    -                     Type typeOfSrc)
    +public String toJson(Object src, + Type typeOfSrc)
    This method serializes the specified object, including those of generic types, into its equivalent Json representation. This method must be used if the specified object is a generic type. For non-generic objects, use toJson(Object) instead. If you want to write out - the object to a Appendable, use toJson(Object, Type, Appendable) instead. + the object to a Appendable, use toJson(Object, Type, Appendable) instead.

    Parameters:
    src - the object for which JSON representation is to be created
    typeOfSrc - The specific genericized type of src. You can obtain @@ -558,13 +620,13 @@ public

    toJson

    -public void toJson(Object src,
    -                   Appendable writer)
    +public void toJson(Object src,
    +                   Appendable writer)
                 throws JsonIOException
    This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses - Object.getClass() to get the type for the specified object, but the + Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use @@ -583,9 +645,9 @@ public void toJson(

    toJson

    -public void toJson(Object src,
    -                   Type typeOfSrc,
    -                   Appendable writer)
    +public void toJson(Object src,
    +                   Type typeOfSrc,
    +                   Appendable writer)
                 throws JsonIOException
    This method serializes the specified object, including those of generic types, into its @@ -610,8 +672,8 @@ public void toJson(

    toJson

    -public void toJson(Object src,
    -                   Type typeOfSrc,
    +public void toJson(Object src,
    +                   Type typeOfSrc,
                        JsonWriter writer)
                 throws JsonIOException
    @@ -629,7 +691,7 @@ public void toJson(

    toJson

    -public String toJson(JsonElement jsonElement)
    +public String toJson(JsonElement jsonElement)
    Converts a tree of JsonElements into its equivalent JSON representation.

    @@ -646,7 +708,7 @@ public JsonElement jsonElement, - Appendable writer) + Appendable writer) throws JsonIOException

    Writes out the equivalent JSON for a tree of JsonElements. @@ -681,8 +743,8 @@ public void toJson(

    fromJson

    -public <T> T fromJson(String json,
    -                      Class<T> classOfT)
    +public <T> T fromJson(String json,
    +                      Class<T> classOfT)
                throws JsonSyntaxException
    This method deserializes the specified Json into an object of the specified class. It is not @@ -691,7 +753,7 @@ public <T> T fromJson(fromJson(String, Type). If you have the Json in a Reader instead of + fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.

    @@ -707,13 +769,13 @@ public <T> T fromJson(

    fromJson

    -public <T> T fromJson(String json,
    -                      Type typeOfT)
    +public <T> T fromJson(String json,
    +                      Type typeOfT)
                throws JsonSyntaxException
    This method deserializes the specified Json into an object of the specified type. This method is useful if the specified object is a generic type. For non-generic objects, use - fromJson(String, Class) instead. If you have the Json in a Reader instead of + fromJson(String, Class) instead. If you have the Json in a Reader instead of a String, use fromJson(Reader, Type) instead.

    @@ -734,8 +796,8 @@ public <T> T fromJson(

    fromJson

    -public <T> T fromJson(Reader json,
    -                      Class<T> classOfT)
    +public <T> T fromJson(Reader json,
    +                      Class<T> classOfT)
                throws JsonSyntaxException,
                       JsonIOException
    @@ -746,7 +808,7 @@ public <T> T fromJson(fromJson(Reader, Type). If you have the Json in a String form instead of a - Reader, use fromJson(String, Class) instead. + Reader, use fromJson(String, Class) instead.

    Type Parameters:
    T - the type of the desired object
    Parameters:
    json - the reader producing the Json from which the object is to be deserialized.
    classOfT - the class of T @@ -763,15 +825,15 @@ public <T> T fromJson(

    fromJson

    -public <T> T fromJson(Reader json,
    -                      Type typeOfT)
    +public <T> T fromJson(Reader json,
    +                      Type typeOfT)
                throws JsonIOException,
                       JsonSyntaxException
    This method deserializes the Json read from the specified reader into an object of the specified type. This method is useful if the specified object is a generic type. For non-generic objects, use fromJson(Reader, Class) instead. If you have the Json in a - String form instead of a Reader, use fromJson(String, Type) instead. + String form instead of a Reader, use fromJson(String, Type) instead.

    Type Parameters:
    T - the type of the desired object
    Parameters:
    json - the reader producing Json from which the object is to be deserialized
    typeOfT - The specific genericized type of src. You can obtain this type by using the @@ -794,7 +856,7 @@ public <T> T fromJson(JsonReader reader, - Type typeOfT) + Type typeOfT) throws JsonIOException, JsonSyntaxException
    @@ -815,7 +877,7 @@ public <T> T fromJson(JsonElement json, - Class<T> classOfT) + Class<T> classOfT) throws JsonSyntaxException
    This method deserializes the Json read from the specified parse tree into an object of the @@ -842,7 +904,7 @@ public <T> T fromJson(JsonElement json, - Type typeOfT) + Type typeOfT) throws JsonSyntaxException
    This method deserializes the Json read from the specified parse tree into an object of the @@ -869,10 +931,10 @@ public <T> T fromJson(

    toString

    -public String toString()
    +public String toString()
    -
    Overrides:
    toString in class Object
    +
    Overrides:
    toString in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/GsonBuilder.html b/gson/docs/javadocs/com/google/gson/GsonBuilder.html index 2265aaef..2832652d 100644 --- a/gson/docs/javadocs/com/google/gson/GsonBuilder.html +++ b/gson/docs/javadocs/com/google/gson/GsonBuilder.html @@ -2,13 +2,13 @@ - + -GsonBuilder (Gson 2.1-SNAPSHOT API) +GsonBuilder (Gson 2.1 API) - + @@ -16,7 +16,7 @@ GsonBuilder (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="GsonBuilder (Gson 2.1-SNAPSHOT API)"; + parent.document.title="GsonBuilder (Gson 2.1 API)"; } } @@ -93,12 +93,12 @@ com.google.gson
    Class GsonBuilder
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.GsonBuilder
     

    -
    public final class GsonBuilder
    extends Object
    +
    public final class GsonBuilder
    extends Object

    @@ -125,7 +125,7 @@ Class GsonBuilder

    NOTES:

    • the order of invocation of configuration methods does not matter.
    • -
    • The default serialization of Date and its subclasses in Gson does +
    • The default serialization of Date and its subclasses in Gson does not contain time-zone information. So, if you are using date/time instances, use GsonBuilder and its setDateFormat methods.
    @@ -135,7 +135,7 @@ Class GsonBuilder

    Author:
    -
    Inderjeet Singh, Joel Leitch
    +
    Inderjeet Singh, Joel Leitch, Jesse Wilson

    @@ -244,8 +244,8 @@ Class GsonBuilder  GsonBuilder -registerTypeAdapter(Type type, - Object typeAdapter) +registerTypeAdapter(Type type, + Object typeAdapter)
              Configures Gson for custom serialization or deserialization. @@ -253,8 +253,16 @@ Class GsonBuilder  GsonBuilder -registerTypeHierarchyAdapter(Class<?> baseType, - Object typeAdapter) +registerTypeAdapterFactory(TypeAdapterFactory factory) + +
    +          Register a factory for type adapters. + + + + GsonBuilder +registerTypeHierarchyAdapter(Class<?> baseType, + Object typeAdapter)
              Configures Gson for custom serialization or deserialization for an inheritance type hierarchy. @@ -296,7 +304,7 @@ Class GsonBuilder  GsonBuilder -setDateFormat(String pattern) +setDateFormat(String pattern)
              Configures Gson to serialize Date objects according to the pattern provided. @@ -357,10 +365,10 @@ Class GsonBuilder   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      @@ -424,9 +432,9 @@ public Modifier class. For example, - Modifier.TRANSIENT, - Modifier.STATIC. + Modifier class. For example, + Modifier.TRANSIENT, + Modifier.STATIC.
    Returns:
    a reference to this GsonBuilder object to fulfill the "Builder" pattern
    @@ -726,16 +734,16 @@ public

    setDateFormat

    -public GsonBuilder setDateFormat(String pattern)
    +public GsonBuilder setDateFormat(String pattern)
    Configures Gson to serialize Date objects according to the pattern provided. You can call this method or setDateFormat(int) multiple times, but only the last invocation will be used to decide the serialization format. -

    The date format will be used to serialize and deserialize Date, Timestamp and Date. +

    The date format will be used to serialize and deserialize Date, Timestamp and Date.

    Note that this pattern must abide by the convention provided by SimpleDateFormat - class. See the documentation in SimpleDateFormat for more information on + class. See the documentation in SimpleDateFormat for more information on valid date and time patterns.

    @@ -757,7 +765,7 @@ public DateFormat for more + DateFormat class. See the documentation in DateFormat for more information on the valid style constants.

    @@ -781,7 +789,7 @@ public DateFormat for more + DateFormat class. See the documentation in DateFormat for more information on the valid style constants.

    @@ -797,43 +805,57 @@ public

    registerTypeAdapter

    -public GsonBuilder registerTypeAdapter(Type type,
    -                                       Object typeAdapter)
    +public GsonBuilder registerTypeAdapter(Type type, + Object typeAdapter)
    Configures Gson for custom serialization or deserialization. This method combines the - registration of an InstanceCreator, JsonSerializer, and a + registration of an TypeAdapter, InstanceCreator, JsonSerializer, and a JsonDeserializer. It is best used when a single object typeAdapter implements - all the required interfaces for custom serialization with Gson. If an instance creator, - serializer or deserializer was previously registered for the specified type, it is - overwritten. + all the required interfaces for custom serialization with Gson. If a type adapter was + previously registered for the specified type, it is overwritten.

    -
    Parameters:
    type - the type definition for the type adapter being registered
    typeAdapter - This object must implement at least one of the InstanceCreator, - JsonSerializer, and a JsonDeserializer interfaces. +
    Parameters:
    type - the type definition for the type adapter being registered
    typeAdapter - This object must implement at least one of the TypeAdapter, + InstanceCreator, JsonSerializer, and a JsonDeserializer interfaces.
    Returns:
    a reference to this GsonBuilder object to fulfill the "Builder" pattern

    +

    +registerTypeAdapterFactory

    +
    +public GsonBuilder registerTypeAdapterFactory(TypeAdapterFactory factory)
    +
    +
    Register a factory for type adapters. Registering a factory is useful when the type + adapter needs to be configured based on the type of the field being processed. Gson + is designed to handle a large number of factories, so you should consider registering + them to be at par with registering an individual type adapter. +

    +

    +
    Since:
    +
    2.1
    +
    +
    +
    +
    +

    registerTypeHierarchyAdapter

    -public GsonBuilder registerTypeHierarchyAdapter(Class<?> baseType,
    -                                                Object typeAdapter)
    +public GsonBuilder registerTypeHierarchyAdapter(Class<?> baseType, + Object typeAdapter)
    Configures Gson for custom serialization or deserialization for an inheritance type hierarchy. - This method combines the registration of an InstanceCreator, JsonSerializer, - and a JsonDeserializer. It is best used when a single object typeAdapter - implements all the required interfaces for custom serialization with Gson. - If an instance creator, serializer or deserializer was previously registered for the specified - type hierarchy, it is overwritten. If an instance creator, serializer or deserializer is - registered for a specific type in the type hierarchy, it will be invoked instead of the one - registered for the type hierarchy. + This method combines the registration of a TypeAdapter, JsonSerializer and + a JsonDeserializer. If a type adapter was previously registered for the specified + type hierarchy, it is overridden. If a type adapter is registered for a specific type in + the type hierarchy, it will be invoked instead of the one registered for the type hierarchy.

    Parameters:
    baseType - the class definition for the type adapter being registered for the base class - or interface
    typeAdapter - This object must implement at least one of the InstanceCreator, - JsonSerializer, and a JsonDeserializer interfaces. + or interface
    typeAdapter - This object must implement at least one of TypeAdapter, + JsonSerializer or JsonDeserializer interfaces.
    Returns:
    a reference to this GsonBuilder object to fulfill the "Builder" pattern
    Since:
    1.7
    @@ -855,10 +877,10 @@ public Float.NaN, - Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, or a double value - Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, it - will throw an IllegalArgumentException. This method provides a way to override the + strictly compliant JSON. Hence, if it encounters a float value Float.NaN, + Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, or a double value + Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, it + will throw an IllegalArgumentException. This method provides a way to override the default behavior when you know that the JSON receiver will be able to handle these special values.

    diff --git a/gson/docs/javadocs/com/google/gson/InstanceCreator.html b/gson/docs/javadocs/com/google/gson/InstanceCreator.html index d844b231..ce819c6c 100644 --- a/gson/docs/javadocs/com/google/gson/InstanceCreator.html +++ b/gson/docs/javadocs/com/google/gson/InstanceCreator.html @@ -2,13 +2,13 @@ - + -InstanceCreator (Gson 2.1-SNAPSHOT API) +InstanceCreator (Gson 2.1 API) - + @@ -16,7 +16,7 @@ InstanceCreator (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="InstanceCreator (Gson 2.1-SNAPSHOT API)"; + parent.document.title="InstanceCreator (Gson 2.1 API)"; } } @@ -173,7 +173,7 @@ This interface is implemented to create instances of a class that does not defin  T -createInstance(Type type) +createInstance(Type type)
              Gson invokes this call-back method during deserialization to create an instance of the @@ -196,7 +196,7 @@ This interface is implemented to create instances of a class that does not defin

    createInstance

    -T createInstance(Type type)
    +T createInstance(Type type)
    Gson invokes this call-back method during deserialization to create an instance of the specified type. The fields of the returned instance are overwritten with the data present @@ -205,7 +205,7 @@ createInstance always use new to create a new instance.

    -
    Parameters:
    type - the parameterized T represented as a Type. +
    Parameters:
    type - the parameterized T represented as a Type.
    Returns:
    a default object instance of type T.
    diff --git a/gson/docs/javadocs/com/google/gson/JsonArray.html b/gson/docs/javadocs/com/google/gson/JsonArray.html index 5f166f86..51f5136c 100644 --- a/gson/docs/javadocs/com/google/gson/JsonArray.html +++ b/gson/docs/javadocs/com/google/gson/JsonArray.html @@ -2,13 +2,13 @@ - + -JsonArray (Gson 2.1-SNAPSHOT API) +JsonArray (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonArray (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonArray (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonArray (Gson 2.1 API)"; } } @@ -93,16 +93,16 @@ com.google.gson
    Class JsonArray
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonElement
           extended by com.google.gson.JsonArray
     
    -
    All Implemented Interfaces:
    Iterable<JsonElement>
    +
    All Implemented Interfaces:
    Iterable<JsonElement>

    -
    public final class JsonArray
    extends JsonElement
    implements Iterable<JsonElement>
    +
    public final class JsonArray
    extends JsonElement
    implements Iterable<JsonElement>

    @@ -163,7 +163,7 @@ A class representing an array type in Json. An array is a list of  boolean -equals(Object o) +equals(Object o)
                @@ -178,19 +178,19 @@ A class representing an array type in Json. An array is a list of - BigDecimal + BigDecimal getAsBigDecimal()
    -          convenience method to get this array as a BigDecimal if it contains a single element. +          convenience method to get this array as a BigDecimal if it contains a single element. - BigInteger + BigInteger getAsBigInteger()
    -          convenience method to get this array as a BigInteger if it contains a single element. +          convenience method to get this array as a BigInteger if it contains a single element. @@ -250,11 +250,11 @@ A class representing an array type in Json. An array is a list of - Number + Number getAsNumber()
    -          convenience method to get this array as a Number if it contains a single element. +          convenience method to get this array as a Number if it contains a single element. @@ -266,11 +266,11 @@ A class representing an array type in Json. An array is a list of - String + String getAsString()
    -          convenience method to get this array as a String if it contains a single element. +          convenience method to get this array as a String if it contains a single element. @@ -282,7 +282,7 @@ A class representing an array type in Json. An array is a list of - Iterator<JsonElement> + Iterator<JsonElement> iterator()
    @@ -309,10 +309,10 @@ A class representing an array type in Json. An array is a list of - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -399,13 +399,13 @@ public int size()

    iterator

    -public Iterator<JsonElement> iterator()
    +public Iterator<JsonElement> iterator()
    Returns an iterator to navigate the elemetns of the array. Since the array is an ordered list, the iterator navigates the elements in the order they were inserted.

    -
    Specified by:
    iterator in interface Iterable<JsonElement>
    +
    Specified by:
    iterator in interface Iterable<JsonElement>
    @@ -428,7 +428,7 @@ public IndexOutOfBoundsException - if i is negative or greater than or equal to the +
    IndexOutOfBoundsException - if i is negative or greater than or equal to the size() of the array.
    @@ -437,9 +437,9 @@ public

    getAsNumber

    -public Number getAsNumber()
    +public Number getAsNumber()
    -
    convenience method to get this array as a Number if it contains a single element. +
    convenience method to get this array as a Number if it contains a single element.

    Overrides:
    getAsNumber in class JsonElement
    @@ -448,9 +448,9 @@ public ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid Number. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -458,9 +458,9 @@ public

    getAsString

    -public String getAsString()
    +public String getAsString()
    -
    convenience method to get this array as a String if it contains a single element. +
    convenience method to get this array as a String if it contains a single element.

    Overrides:
    getAsString in class JsonElement
    @@ -469,9 +469,9 @@ public ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid String. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -490,9 +490,9 @@ public double getAsDouble()
    Returns:
    get this element as a double if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid double. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -500,20 +500,20 @@ public double getAsDouble()

    getAsBigDecimal

    -public BigDecimal getAsBigDecimal()
    +public BigDecimal getAsBigDecimal()
    -
    convenience method to get this array as a BigDecimal if it contains a single element. +
    convenience method to get this array as a BigDecimal if it contains a single element.

    Overrides:
    getAsBigDecimal in class JsonElement
    -
    Returns:
    get this element as a BigDecimal if it is single element array. +
    Returns:
    get this element as a BigDecimal if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive. -
    NumberFormatException - if the element at index 0 is not a valid BigDecimal. -
    IllegalStateException - if the array has more than one element.
    Since:
    +
    ClassCastException - if the element in the array is of not a JsonPrimitive. +
    NumberFormatException - if the element at index 0 is not a valid BigDecimal. +
    IllegalStateException - if the array has more than one element.
    Since:
    1.2
    @@ -523,20 +523,20 @@ public

    getAsBigInteger

    -public BigInteger getAsBigInteger()
    +public BigInteger getAsBigInteger()
    -
    convenience method to get this array as a BigInteger if it contains a single element. +
    convenience method to get this array as a BigInteger if it contains a single element.

    Overrides:
    getAsBigInteger in class JsonElement
    -
    Returns:
    get this element as a BigInteger if it is single element array. +
    Returns:
    get this element as a BigInteger if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive. -
    NumberFormatException - if the element at index 0 is not a valid BigInteger. -
    IllegalStateException - if the array has more than one element.
    Since:
    +
    ClassCastException - if the element in the array is of not a JsonPrimitive. +
    NumberFormatException - if the element at index 0 is not a valid BigInteger. +
    IllegalStateException - if the array has more than one element.
    Since:
    1.2
    @@ -557,9 +557,9 @@ public float getAsFloat()
    Returns:
    get this element as a float if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid float. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -578,9 +578,9 @@ public long getAsLong()
    Returns:
    get this element as a long if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid long. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -599,9 +599,9 @@ public int getAsInt()
    Returns:
    get this element as an integer if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid integer. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -656,9 +656,9 @@ public short getAsShort()
    Returns:
    get this element as a primitive short if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid short. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -677,9 +677,9 @@ public boolean getAsBoolean()
    Returns:
    get this element as a boolean if it is single element array.
    Throws: -
    ClassCastException - if the element in the array is of not a JsonPrimitive and +
    ClassCastException - if the element in the array is of not a JsonPrimitive and is not a valid boolean. -
    IllegalStateException - if the array has more than one element.
    +
    IllegalStateException - if the array has more than one element.

    @@ -687,10 +687,10 @@ public boolean getAsBoolean()

    equals

    -public boolean equals(Object o)
    +public boolean equals(Object o)
    -
    Overrides:
    equals in class Object
    +
    Overrides:
    equals in class Object
    @@ -704,7 +704,7 @@ hashCode public int hashCode()
    -
    Overrides:
    hashCode in class Object
    +
    Overrides:
    hashCode in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html b/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html index 5498a3b9..597db017 100644 --- a/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html +++ b/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html @@ -2,13 +2,13 @@ - + -JsonDeserializationContext (Gson 2.1-SNAPSHOT API) +JsonDeserializationContext (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonDeserializationContext (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonDeserializationContext (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonDeserializationContext (Gson 2.1 API)"; } } @@ -131,7 +131,7 @@ Context for deserialization that is passed to a custom deserializer during invoc
    deserialize(JsonElement json, - Type typeOfT) + Type typeOfT)
              Invokes default deserialization on the specified object. @@ -154,7 +154,7 @@ Context for deserialization that is passed to a custom deserializer during invoc deserialize
     <T> T deserialize(JsonElement json,
    -                  Type typeOfT)
    +                  Type typeOfT)
                   throws JsonParseException
    Invokes default deserialization on the specified object. It should never be invoked on diff --git a/gson/docs/javadocs/com/google/gson/JsonDeserializer.html b/gson/docs/javadocs/com/google/gson/JsonDeserializer.html index 0a0a2dfd..89767a9f 100644 --- a/gson/docs/javadocs/com/google/gson/JsonDeserializer.html +++ b/gson/docs/javadocs/com/google/gson/JsonDeserializer.html @@ -2,13 +2,13 @@ - + -JsonDeserializer (Gson 2.1-SNAPSHOT API) +JsonDeserializer (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonDeserializer (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonDeserializer (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonDeserializer (Gson 2.1 API)"; } } @@ -142,6 +142,9 @@ Interface JsonDeserializer<T>
      Gson gson = new GsonBuilder().registerTypeAdapter(Id.class, new IdDeserializer()).create();
      
    + +

    New applications should prefer TypeAdapter, whose streaming API + is more efficient than this interface's tree API.

    @@ -165,7 +168,7 @@ Interface JsonDeserializer<T>  T deserialize(JsonElement json, - Type typeOfT, + Type typeOfT, JsonDeserializationContext context)
    @@ -190,7 +193,7 @@ Interface JsonDeserializer<T> deserialize

     T deserialize(JsonElement json,
    -              Type typeOfT,
    +              Type typeOfT,
                   JsonDeserializationContext context)
                   throws JsonParseException
    diff --git a/gson/docs/javadocs/com/google/gson/JsonElement.html b/gson/docs/javadocs/com/google/gson/JsonElement.html index e42c69ef..2ad8be11 100644 --- a/gson/docs/javadocs/com/google/gson/JsonElement.html +++ b/gson/docs/javadocs/com/google/gson/JsonElement.html @@ -2,13 +2,13 @@ - + -JsonElement (Gson 2.1-SNAPSHOT API) +JsonElement (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonElement (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonElement (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonElement (Gson 2.1 API)"; } } @@ -93,7 +93,7 @@ com.google.gson
    Class JsonElement
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonElement
     
    @@ -101,7 +101,7 @@ Class JsonElement

    -
    public abstract class JsonElement
    extends Object
    +
    public abstract class JsonElement
    extends Object

    @@ -144,19 +144,19 @@ A class representing an element of Json. It could either be a - BigDecimal + BigDecimal getAsBigDecimal()
    -          convenience method to get this element as a BigDecimal. +          convenience method to get this element as a BigDecimal. - BigInteger + BigInteger getAsBigInteger()
    -          convenience method to get this element as a BigInteger. +          convenience method to get this element as a BigInteger. @@ -248,11 +248,11 @@ A class representing an element of Json. It could either be a - Number + Number getAsNumber()
    -          convenience method to get this element as a Number. +          convenience method to get this element as a Number. @@ -264,7 +264,7 @@ A class representing an element of Json. It could either be a - String + String getAsString()
    @@ -304,7 +304,7 @@ A class representing an element of Json. It could either be a - String + String toString()
    @@ -314,10 +314,10 @@ A class representing an element of Json. It could either be a - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -414,7 +414,7 @@ getAsJsonObject public JsonObject getAsJsonObject()

    convenience method to get this element as a JsonObject. If the element is of some - other type, a ClassCastException will result. Hence it is best to use this method + other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.

    @@ -422,7 +422,7 @@ public JsonObject.

    Throws: -
    IllegalStateException - if the element is of another type.
    +
    IllegalStateException - if the element is of another type.

    @@ -433,7 +433,7 @@ getAsJsonArray public JsonArray getAsJsonArray()
    convenience method to get this element as a JsonArray. If the element is of some - other type, a ClassCastException will result. Hence it is best to use this method + other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.

    @@ -441,7 +441,7 @@ public JsonArray.

    Throws: -
    IllegalStateException - if the element is of another type.
    +
    IllegalStateException - if the element is of another type.

    @@ -452,7 +452,7 @@ getAsJsonPrimitive public JsonPrimitive getAsJsonPrimitive()
    convenience method to get this element as a JsonPrimitive. If the element is of some - other type, a ClassCastException will result. Hence it is best to use this method + other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonPrimitive() first.

    @@ -460,7 +460,7 @@ public JsonPrimitive.

    Throws: -
    IllegalStateException - if the element is of another type.
    +
    IllegalStateException - if the element is of another type.

    @@ -471,7 +471,7 @@ getAsJsonNull public JsonNull getAsJsonNull()
    convenience method to get this element as a JsonNull. If the element is of some - other type, a ClassCastException will result. Hence it is best to use this method + other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonNull() first.

    @@ -479,7 +479,7 @@ public JsonNull.

    Throws: -
    IllegalStateException - if the element is of another type.
    Since:
    +
    IllegalStateException - if the element is of another type.
    Since:
    1.2
    @@ -497,9 +497,9 @@ public boolean getAsBoolean()
    Returns:
    get this element as a primitive boolean value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid boolean value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -508,17 +508,17 @@ public boolean getAsBoolean()

    getAsNumber

    -public Number getAsNumber()
    +public Number getAsNumber()
    -
    convenience method to get this element as a Number. +
    convenience method to get this element as a Number.

    -
    Returns:
    get this element as a Number. +
    Returns:
    get this element as a Number.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid number. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -527,7 +527,7 @@ public

    getAsString

    -public String getAsString()
    +public String getAsString()
    convenience method to get this element as a string value.

    @@ -535,9 +535,9 @@ public ClassCastException - if the element is of not a JsonPrimitive and is not a valid +

    ClassCastException - if the element is of not a JsonPrimitive and is not a valid string value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -554,9 +554,9 @@ public double getAsDouble()
    Returns:
    get this element as a primitive double value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid double value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -573,9 +573,9 @@ public float getAsFloat()
    Returns:
    get this element as a primitive float value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid float value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -592,9 +592,9 @@ public long getAsLong()
    Returns:
    get this element as a primitive long value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid long value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -611,9 +611,9 @@ public int getAsInt()
    Returns:
    get this element as a primitive integer value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid integer value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -630,9 +630,9 @@ public byte getAsByte()
    Returns:
    get this element as a primitive byte value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid byte value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    Since:
    1.3
    @@ -651,9 +651,9 @@ public char getAsCharacter()
    Returns:
    get this element as a primitive char value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid char value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    Since:
    1.3
    @@ -664,17 +664,17 @@ public char getAsCharacter()

    getAsBigDecimal

    -public BigDecimal getAsBigDecimal()
    +public BigDecimal getAsBigDecimal()
    -
    convenience method to get this element as a BigDecimal. +
    convenience method to get this element as a BigDecimal.

    -
    Returns:
    get this element as a BigDecimal. +
    Returns:
    get this element as a BigDecimal.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive. - * @throws NumberFormatException if the element is not a valid BigDecimal. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    ClassCastException - if the element is of not a JsonPrimitive. + * @throws NumberFormatException if the element is not a valid BigDecimal. +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    Since:
    1.2
    @@ -685,17 +685,17 @@ public

    getAsBigInteger

    -public BigInteger getAsBigInteger()
    +public BigInteger getAsBigInteger()
    -
    convenience method to get this element as a BigInteger. +
    convenience method to get this element as a BigInteger.

    -
    Returns:
    get this element as a BigInteger. +
    Returns:
    get this element as a BigInteger.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive. -
    NumberFormatException - if the element is not a valid BigInteger. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    ClassCastException - if the element is of not a JsonPrimitive. +
    NumberFormatException - if the element is not a valid BigInteger. +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    Since:
    1.2
    @@ -714,9 +714,9 @@ public short getAsShort()
    Returns:
    get this element as a primitive short value.
    Throws: -
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid +
    ClassCastException - if the element is of not a JsonPrimitive and is not a valid short value. -
    IllegalStateException - if the element is of the type JsonArray but contains +
    IllegalStateException - if the element is of the type JsonArray but contains more than a single element.
    @@ -725,12 +725,12 @@ public short getAsShort()

    toString

    -public String toString()
    +public String toString()
    Returns a String representation of this element.

    -
    Overrides:
    toString in class Object
    +
    Overrides:
    toString in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/JsonIOException.html b/gson/docs/javadocs/com/google/gson/JsonIOException.html index 298f2eda..59075c6b 100644 --- a/gson/docs/javadocs/com/google/gson/JsonIOException.html +++ b/gson/docs/javadocs/com/google/gson/JsonIOException.html @@ -2,13 +2,13 @@ - + -JsonIOException (Gson 2.1-SNAPSHOT API) +JsonIOException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonIOException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonIOException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonIOException (Gson 2.1 API)"; } } @@ -93,15 +93,15 @@ com.google.gson
    Class JsonIOException
    -java.lang.Object
    -  extended by java.lang.Throwable
    -      extended by java.lang.Exception
    -          extended by java.lang.RuntimeException
    +java.lang.Object
    +  extended by java.lang.Throwable
    +      extended by java.lang.Exception
    +          extended by java.lang.RuntimeException
                   extended by com.google.gson.JsonParseException
                       extended by com.google.gson.JsonIOException
     
    -
    All Implemented Interfaces:
    Serializable
    +
    All Implemented Interfaces:
    Serializable

    @@ -131,20 +131,20 @@ This exception is raised when Gson was unable to read an input stream Constructor Summary -JsonIOException(String msg) +JsonIOException(String msg)
                -JsonIOException(String msg, - Throwable cause) +JsonIOException(String msg, + Throwable cause)
                -JsonIOException(Throwable cause) +JsonIOException(Throwable cause)
              Creates exception with the specified cause. @@ -163,19 +163,19 @@ This exception is raised when Gson was unable to read an input stream   - + - +
    Methods inherited from class java.lang.ThrowableMethods inherited from class java.lang.Throwable
    fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringfillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -194,7 +194,7 @@ This exception is raised when Gson was unable to read an input stream

    JsonIOException

    -public JsonIOException(String msg)
    +public JsonIOException(String msg)

    @@ -202,8 +202,8 @@ public JsonIOException(

    JsonIOException

    -public JsonIOException(String msg,
    -                       Throwable cause)
    +public JsonIOException(String msg, + Throwable cause)

    @@ -211,7 +211,7 @@ public JsonIOException(

    JsonIOException

    -public JsonIOException(Throwable cause)
    +public JsonIOException(Throwable cause)
    Creates exception with the specified cause. Consider using JsonIOException(String, Throwable) instead if you can describe what happened. diff --git a/gson/docs/javadocs/com/google/gson/JsonNull.html b/gson/docs/javadocs/com/google/gson/JsonNull.html index f8487d8b..e80f0497 100644 --- a/gson/docs/javadocs/com/google/gson/JsonNull.html +++ b/gson/docs/javadocs/com/google/gson/JsonNull.html @@ -2,13 +2,13 @@ - + -JsonNull (Gson 2.1-SNAPSHOT API) +JsonNull (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonNull (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonNull (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonNull (Gson 2.1 API)"; } } @@ -93,7 +93,7 @@ com.google.gson
    Class JsonNull
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonElement
           extended by com.google.gson.JsonNull
     
    @@ -161,7 +161,7 @@ A class representing a Json null value.  boolean -equals(Object other) +equals(Object other)
              All instances of JsonNull are the same @@ -187,10 +187,10 @@ A class representing a Json null value.   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -232,7 +232,7 @@ public static final

    JsonNull

    -@Deprecated
    +@Deprecated
     public JsonNull()
    Deprecated.  @@ -260,7 +260,7 @@ public int hashCode()
    All instances of JsonNull have the same hash code since they are indistinguishable

    -
    Overrides:
    hashCode in class Object
    +
    Overrides:
    hashCode in class Object
    @@ -271,12 +271,12 @@ public int hashCode()

    equals

    -public boolean equals(Object other)
    +public boolean equals(Object other)
    All instances of JsonNull are the same

    -
    Overrides:
    equals in class Object
    +
    Overrides:
    equals in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/JsonObject.html b/gson/docs/javadocs/com/google/gson/JsonObject.html index 9c636721..f1ce757f 100644 --- a/gson/docs/javadocs/com/google/gson/JsonObject.html +++ b/gson/docs/javadocs/com/google/gson/JsonObject.html @@ -2,13 +2,13 @@ - + -JsonObject (Gson 2.1-SNAPSHOT API) +JsonObject (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonObject (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonObject (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonObject (Gson 2.1 API)"; } } @@ -93,7 +93,7 @@ com.google.gson

    Class JsonObject
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonElement
           extended by com.google.gson.JsonObject
     
    @@ -144,7 +144,7 @@ A class representing an object type in Json. An object consists of name-value pa  void -add(String property, +add(String property, JsonElement value)
    @@ -153,8 +153,8 @@ A class representing an object type in Json. An object consists of name-value pa  void -addProperty(String property, - Boolean value) +addProperty(String property, + Boolean value)
              Convenience method to add a boolean member. @@ -162,8 +162,8 @@ A class representing an object type in Json. An object consists of name-value pa  void -addProperty(String property, - Character value) +addProperty(String property, + Character value)
              Convenience method to add a char member. @@ -171,8 +171,8 @@ A class representing an object type in Json. An object consists of name-value pa  void -addProperty(String property, - Number value) +addProperty(String property, + Number value)
              Convenience method to add a primitive member. @@ -180,15 +180,15 @@ A class representing an object type in Json. An object consists of name-value pa  void -addProperty(String property, - String value) +addProperty(String property, + String value)
              Convenience method to add a primitive member. - Set<Map.Entry<String,JsonElement>> + Set<Map.Entry<String,JsonElement>> entrySet()
    @@ -197,7 +197,7 @@ A class representing an object type in Json. An object consists of name-value pa  boolean -equals(Object o) +equals(Object o)
                @@ -205,7 +205,7 @@ A class representing an object type in Json. An object consists of name-value pa  JsonElement -get(String memberName) +get(String memberName)
              Returns the member with the specified name. @@ -213,7 +213,7 @@ A class representing an object type in Json. An object consists of name-value pa  JsonArray -getAsJsonArray(String memberName) +getAsJsonArray(String memberName)
              Convenience method to get the specified member as a JsonArray. @@ -221,7 +221,7 @@ A class representing an object type in Json. An object consists of name-value pa  JsonObject -getAsJsonObject(String memberName) +getAsJsonObject(String memberName)
              Convenience method to get the specified member as a JsonObject. @@ -229,7 +229,7 @@ A class representing an object type in Json. An object consists of name-value pa  JsonPrimitive -getAsJsonPrimitive(String memberName) +getAsJsonPrimitive(String memberName)
              Convenience method to get the specified member as a JsonPrimitive element. @@ -237,7 +237,7 @@ A class representing an object type in Json. An object consists of name-value pa  boolean -has(String memberName) +has(String memberName)
              Convenience method to check if a member with the specified name is present in this object. @@ -253,7 +253,7 @@ A class representing an object type in Json. An object consists of name-value pa  JsonElement -remove(String property) +remove(String property)
              Removes the property from this JsonObject. @@ -271,10 +271,10 @@ A class representing an object type in Json. An object consists of name-value pa   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -312,7 +312,7 @@ public JsonObject()

    add

    -public void add(String property,
    +public void add(String property,
                     JsonElement value)
    Adds a member, which is a name-value pair, to self. The name must be a String, but the value @@ -328,7 +328,7 @@ public void add(

    remove

    -public JsonElement remove(String property)
    +public JsonElement remove(String property)
    Removes the property from this JsonObject.

    @@ -344,8 +344,8 @@ public

    addProperty

    -public void addProperty(String property,
    -                        String value)
    +public void addProperty(String property, + String value)
    Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String. @@ -359,8 +359,8 @@ public void addProperty(

    addProperty

    -public void addProperty(String property,
    -                        Number value)
    +public void addProperty(String property, + Number value)
    Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of Number. @@ -374,8 +374,8 @@ public void addProperty(

    addProperty

    -public void addProperty(String property,
    -                        Boolean value)
    +public void addProperty(String property, + Boolean value)
    Convenience method to add a boolean member. The specified value is converted to a JsonPrimitive of Boolean. @@ -389,8 +389,8 @@ public void addProperty(

    addProperty

    -public void addProperty(String property,
    -                        Character value)
    +public void addProperty(String property, + Character value)
    Convenience method to add a char member. The specified value is converted to a JsonPrimitive of Character. @@ -404,7 +404,7 @@ public void addProperty(

    entrySet

    -public Set<Map.Entry<String,JsonElement>> entrySet()
    +public Set<Map.Entry<String,JsonElement>> entrySet()
    Returns a set of members of this object. The set is ordered, and the order is in which the elements were added. @@ -419,7 +419,7 @@ public

    has

    -public boolean has(String memberName)
    +public boolean has(String memberName)
    Convenience method to check if a member with the specified name is present in this object.

    @@ -433,7 +433,7 @@ public boolean has(

    get

    -public JsonElement get(String memberName)
    +public JsonElement get(String memberName)
    Returns the member with the specified name.

    @@ -447,7 +447,7 @@ public

    getAsJsonPrimitive

    -public JsonPrimitive getAsJsonPrimitive(String memberName)
    +public JsonPrimitive getAsJsonPrimitive(String memberName)
    Convenience method to get the specified member as a JsonPrimitive element.

    @@ -461,7 +461,7 @@ public

    getAsJsonArray

    -public JsonArray getAsJsonArray(String memberName)
    +public JsonArray getAsJsonArray(String memberName)
    Convenience method to get the specified member as a JsonArray.

    @@ -475,7 +475,7 @@ public

    getAsJsonObject

    -public JsonObject getAsJsonObject(String memberName)
    +public JsonObject getAsJsonObject(String memberName)
    Convenience method to get the specified member as a JsonObject.

    @@ -489,10 +489,10 @@ public

    equals

    -public boolean equals(Object o)
    +public boolean equals(Object o)
    -
    Overrides:
    equals in class Object
    +
    Overrides:
    equals in class Object
    @@ -506,7 +506,7 @@ hashCode public int hashCode()
    -
    Overrides:
    hashCode in class Object
    +
    Overrides:
    hashCode in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/JsonParseException.html b/gson/docs/javadocs/com/google/gson/JsonParseException.html index 79ba3f21..a82749d9 100644 --- a/gson/docs/javadocs/com/google/gson/JsonParseException.html +++ b/gson/docs/javadocs/com/google/gson/JsonParseException.html @@ -2,13 +2,13 @@ - + -JsonParseException (Gson 2.1-SNAPSHOT API) +JsonParseException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonParseException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonParseException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonParseException (Gson 2.1 API)"; } } @@ -93,21 +93,21 @@ com.google.gson
    Class JsonParseException
    -java.lang.Object
    -  extended by java.lang.Throwable
    -      extended by java.lang.Exception
    -          extended by java.lang.RuntimeException
    +java.lang.Object
    +  extended by java.lang.Throwable
    +      extended by java.lang.Exception
    +          extended by java.lang.RuntimeException
                   extended by com.google.gson.JsonParseException
     
    -
    All Implemented Interfaces:
    Serializable
    +
    All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    JsonIOException, JsonSyntaxException

    -
    public class JsonParseException
    extends RuntimeException
    +
    public class JsonParseException
    extends RuntimeException

    @@ -115,8 +115,8 @@ This exception is raised if there is a serious issue that occurs during parsing string. One of the main usages for this class is for the Gson infrastructure. If the incoming Json is bad/malicious, an instance of this exception is raised. -

    This exception is a RuntimeException because it is exposed to the client. Using a - RuntimeException avoids bad coding practices on the client side where they catch the +

    This exception is a RuntimeException because it is exposed to the client. Using a + RuntimeException avoids bad coding practices on the client side where they catch the exception and do nothing. It is often the case that you want to blow up if there is a parsing error (i.e. often clients do not know how to recover from a JsonParseException.

    @@ -139,20 +139,20 @@ This exception is raised if there is a serious issue that occurs during parsing Constructor Summary -JsonParseException(String msg) +JsonParseException(String msg)
              Creates exception with the specified message. -JsonParseException(String msg, - Throwable cause) +JsonParseException(String msg, + Throwable cause)
              Creates exception with the specified message and cause. -JsonParseException(Throwable cause) +JsonParseException(Throwable cause)
              Creates exception with the specified cause. @@ -171,19 +171,19 @@ This exception is raised if there is a serious issue that occurs during parsing   - + - +
    Methods inherited from class java.lang.ThrowableMethods inherited from class java.lang.Throwable
    fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringfillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -202,7 +202,7 @@ This exception is raised if there is a serious issue that occurs during parsing

    JsonParseException

    -public JsonParseException(String msg)
    +public JsonParseException(String msg)
    Creates exception with the specified message. If you are wrapping another exception, consider using JsonParseException(String, Throwable) instead. @@ -215,8 +215,8 @@ public JsonParseException(

    JsonParseException

    -public JsonParseException(String msg,
    -                          Throwable cause)
    +public JsonParseException(String msg, + Throwable cause)
    Creates exception with the specified message and cause.

    @@ -228,7 +228,7 @@ public JsonParseException(

    JsonParseException

    -public JsonParseException(Throwable cause)
    +public JsonParseException(Throwable cause)
    Creates exception with the specified cause. Consider using JsonParseException(String, Throwable) instead if you can describe what happened. diff --git a/gson/docs/javadocs/com/google/gson/JsonParser.html b/gson/docs/javadocs/com/google/gson/JsonParser.html index 732fece0..e9524384 100644 --- a/gson/docs/javadocs/com/google/gson/JsonParser.html +++ b/gson/docs/javadocs/com/google/gson/JsonParser.html @@ -2,13 +2,13 @@ - + -JsonParser (Gson 2.1-SNAPSHOT API) +JsonParser (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonParser (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonParser (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonParser (Gson 2.1 API)"; } } @@ -93,12 +93,12 @@ com.google.gson
    Class JsonParser
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonParser
     

    -
    public final class JsonParser
    extends Object
    +
    public final class JsonParser
    extends Object

    @@ -151,7 +151,7 @@ A parser to parse Json into a parse tree of  JsonElement -parse(Reader json) +parse(Reader json)
              Parses the specified JSON string into a parse tree @@ -159,7 +159,7 @@ A parser to parse Json into a parse tree of  JsonElement -parse(String json) +parse(String json)
              Parses the specified JSON string into a parse tree @@ -168,10 +168,10 @@ A parser to parse Json into a parse tree of - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      @@ -207,7 +207,7 @@ public JsonParser()

    parse

    -public JsonElement parse(String json)
    +public JsonElement parse(String json)
                       throws JsonSyntaxException
    Parses the specified JSON string into a parse tree @@ -227,7 +227,7 @@ public

    parse

    -public JsonElement parse(Reader json)
    +public JsonElement parse(Reader json)
                       throws JsonIOException,
                              JsonSyntaxException
    diff --git a/gson/docs/javadocs/com/google/gson/JsonPrimitive.html b/gson/docs/javadocs/com/google/gson/JsonPrimitive.html index 13c7564f..1101ee7b 100644 --- a/gson/docs/javadocs/com/google/gson/JsonPrimitive.html +++ b/gson/docs/javadocs/com/google/gson/JsonPrimitive.html @@ -2,13 +2,13 @@ - + -JsonPrimitive (Gson 2.1-SNAPSHOT API) +JsonPrimitive (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonPrimitive (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonPrimitive (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonPrimitive (Gson 2.1 API)"; } } @@ -93,7 +93,7 @@ com.google.gson
    Class JsonPrimitive
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonElement
           extended by com.google.gson.JsonPrimitive
     
    @@ -126,25 +126,25 @@ A class representing a Json primitive value. A primitive value Constructor Summary -JsonPrimitive(Boolean bool) +JsonPrimitive(Boolean bool)
              Create a primitive containing a boolean value. -JsonPrimitive(Character c) +JsonPrimitive(Character c)
              Create a primitive containing a character. -JsonPrimitive(Number number) +JsonPrimitive(Number number)
    -          Create a primitive containing a Number. +          Create a primitive containing a Number. -JsonPrimitive(String string) +JsonPrimitive(String string)
              Create a primitive containing a String value. @@ -162,26 +162,26 @@ A class representing a Json primitive value. A primitive value  boolean -equals(Object obj) +equals(Object obj)
                - BigDecimal + BigDecimal getAsBigDecimal()
    -          convenience method to get this element as a BigDecimal. +          convenience method to get this element as a BigDecimal. - BigInteger + BigInteger getAsBigInteger()
    -          convenience method to get this element as a BigInteger. +          convenience method to get this element as a BigInteger. @@ -241,7 +241,7 @@ A class representing a Json primitive value. A primitive value - Number + Number getAsNumber()
    @@ -257,7 +257,7 @@ A class representing a Json primitive value. A primitive value - String + String getAsString()
    @@ -308,10 +308,10 @@ A class representing a Json primitive value. A primitive value   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -330,7 +330,7 @@ A class representing a Json primitive value. A primitive value

    JsonPrimitive

    -public JsonPrimitive(Boolean bool)
    +public JsonPrimitive(Boolean bool)
    Create a primitive containing a boolean value.

    @@ -342,9 +342,9 @@ public JsonPrimitive(

    JsonPrimitive

    -public JsonPrimitive(Number number)
    +public JsonPrimitive(Number number)
    -
    Create a primitive containing a Number. +
    Create a primitive containing a Number.

    Parameters:
    number - the value to create the primitive with.
    @@ -354,7 +354,7 @@ public JsonPrimitive(

    JsonPrimitive

    -public JsonPrimitive(String string)
    +public JsonPrimitive(String string)
    Create a primitive containing a String value.

    @@ -366,7 +366,7 @@ public JsonPrimitive(

    JsonPrimitive

    -public JsonPrimitive(Character c)
    +public JsonPrimitive(Character c)
    Create a primitive containing a character. The character is turned into a one character String since Json only supports String. @@ -433,7 +433,7 @@ public boolean isNumber()

    getAsNumber

    -public Number getAsNumber()
    +public Number getAsNumber()
    convenience method to get this element as a Number.

    @@ -444,7 +444,7 @@ public NumberFormatException - if the value contained is not a valid Number.

    +
    NumberFormatException - if the value contained is not a valid Number.

    @@ -466,7 +466,7 @@ public boolean isString()

    getAsString

    -public String getAsString()
    +public String getAsString()
    convenience method to get this element as a String.

    @@ -494,7 +494,7 @@ public double getAsDouble()

    Returns:
    get this element as a primitive double.
    Throws: -
    NumberFormatException - if the value contained is not a valid double.
    +
    NumberFormatException - if the value contained is not a valid double.

    @@ -502,18 +502,18 @@ public double getAsDouble()

    getAsBigDecimal

    -public BigDecimal getAsBigDecimal()
    +public BigDecimal getAsBigDecimal()
    -
    convenience method to get this element as a BigDecimal. +
    convenience method to get this element as a BigDecimal.

    Overrides:
    getAsBigDecimal in class JsonElement
    -
    Returns:
    get this element as a BigDecimal. +
    Returns:
    get this element as a BigDecimal.
    Throws: -
    NumberFormatException - if the value contained is not a valid BigDecimal.
    +
    NumberFormatException - if the value contained is not a valid BigDecimal.

    @@ -521,18 +521,18 @@ public

    getAsBigInteger

    -public BigInteger getAsBigInteger()
    +public BigInteger getAsBigInteger()
    -
    convenience method to get this element as a BigInteger. +
    convenience method to get this element as a BigInteger.

    Overrides:
    getAsBigInteger in class JsonElement
    -
    Returns:
    get this element as a BigInteger. +
    Returns:
    get this element as a BigInteger.
    Throws: -
    NumberFormatException - if the value contained is not a valid BigInteger.
    +
    NumberFormatException - if the value contained is not a valid BigInteger.

    @@ -551,7 +551,7 @@ public float getAsFloat()
    Returns:
    get this element as a float.
    Throws: -
    NumberFormatException - if the value contained is not a valid float.
    +
    NumberFormatException - if the value contained is not a valid float.

    @@ -570,7 +570,7 @@ public long getAsLong()
    Returns:
    get this element as a primitive long.
    Throws: -
    NumberFormatException - if the value contained is not a valid long.
    +
    NumberFormatException - if the value contained is not a valid long.

    @@ -589,7 +589,7 @@ public short getAsShort()
    Returns:
    get this element as a primitive short.
    Throws: -
    NumberFormatException - if the value contained is not a valid short value.
    +
    NumberFormatException - if the value contained is not a valid short value.

    @@ -608,7 +608,7 @@ public int getAsInt()
    Returns:
    get this element as a primitive integer.
    Throws: -
    NumberFormatException - if the value contained is not a valid integer.
    +
    NumberFormatException - if the value contained is not a valid integer.

    @@ -655,7 +655,7 @@ hashCode public int hashCode()
    -
    Overrides:
    hashCode in class Object
    +
    Overrides:
    hashCode in class Object
    @@ -666,10 +666,10 @@ public int hashCode()

    equals

    -public boolean equals(Object obj)
    +public boolean equals(Object obj)
    -
    Overrides:
    equals in class Object
    +
    Overrides:
    equals in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html b/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html index 2c423f3f..c923e76d 100644 --- a/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html +++ b/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html @@ -2,13 +2,13 @@ - + -JsonSerializationContext (Gson 2.1-SNAPSHOT API) +JsonSerializationContext (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonSerializationContext (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonSerializationContext (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonSerializationContext (Gson 2.1 API)"; } } @@ -122,7 +122,7 @@ Context for serialization that is passed to a custom serializer during invocatio  JsonElement -serialize(Object src) +serialize(Object src)
              Invokes default serialization on the specified object. @@ -130,8 +130,8 @@ Context for serialization that is passed to a custom serializer during invocatio  JsonElement -serialize(Object src, - Type typeOfSrc) +serialize(Object src, + Type typeOfSrc)
              Invokes default serialization on the specified object passing the specific type information. @@ -153,7 +153,7 @@ Context for serialization that is passed to a custom serializer during invocatio

    serialize

    -JsonElement serialize(Object src)
    +JsonElement serialize(Object src)
    Invokes default serialization on the specified object.

    @@ -167,8 +167,8 @@ serialize

    serialize

    -JsonElement serialize(Object src,
    -                      Type typeOfSrc)
    +JsonElement serialize(Object src, + Type typeOfSrc)
    Invokes default serialization on the specified object passing the specific type information. It should never be invoked on the element received as a parameter of the diff --git a/gson/docs/javadocs/com/google/gson/JsonSerializer.html b/gson/docs/javadocs/com/google/gson/JsonSerializer.html index 76951c05..5e4099b7 100644 --- a/gson/docs/javadocs/com/google/gson/JsonSerializer.html +++ b/gson/docs/javadocs/com/google/gson/JsonSerializer.html @@ -2,13 +2,13 @@ - + -JsonSerializer (Gson 2.1-SNAPSHOT API) +JsonSerializer (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonSerializer (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonSerializer (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonSerializer (Gson 2.1 API)"; } } @@ -141,6 +141,9 @@ Interface representing a custom serializer for Json. You should write a custom s
      Gson gson = new GsonBuilder().registerTypeAdapter(Id.class, new IdSerializer()).create();
      
    + +

    New applications should prefer TypeAdapter, whose streaming API + is more efficient than this interface's tree API.

    @@ -164,7 +167,7 @@ Interface representing a custom serializer for Json. You should write a custom s  JsonElement serialize(T src, - Type typeOfSrc, + Type typeOfSrc, JsonSerializationContext context)
    @@ -189,7 +192,7 @@ Interface representing a custom serializer for Json. You should write a custom s serialize

     JsonElement serialize(T src,
    -                      Type typeOfSrc,
    +                      Type typeOfSrc,
                           JsonSerializationContext context)
    Gson invokes this call-back method during serialization when it encounters a field of the diff --git a/gson/docs/javadocs/com/google/gson/JsonStreamParser.html b/gson/docs/javadocs/com/google/gson/JsonStreamParser.html index ea58e58e..f1e38596 100644 --- a/gson/docs/javadocs/com/google/gson/JsonStreamParser.html +++ b/gson/docs/javadocs/com/google/gson/JsonStreamParser.html @@ -2,13 +2,13 @@ - + -JsonStreamParser (Gson 2.1-SNAPSHOT API) +JsonStreamParser (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonStreamParser (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonStreamParser (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonStreamParser (Gson 2.1 API)"; } } @@ -93,15 +93,15 @@ com.google.gson
    Class JsonStreamParser
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.JsonStreamParser
     
    -
    All Implemented Interfaces:
    Iterator<JsonElement>
    +
    All Implemented Interfaces:
    Iterator<JsonElement>

    -
    public final class JsonStreamParser
    extends Object
    implements Iterator<JsonElement>
    +
    public final class JsonStreamParser
    extends Object
    implements Iterator<JsonElement>

    @@ -143,13 +143,13 @@ A streaming parser that allows reading of multiple -JsonStreamParser(Reader reader) +JsonStreamParser(Reader reader)
                -JsonStreamParser(String json) +JsonStreamParser(String json)
                @@ -186,17 +186,17 @@ A streaming parser that allows reading of multiple remove()

    -          This optional Iterator method is not relevant for stream parsing and hence is not +          This optional Iterator method is not relevant for stream parsing and hence is not implemented.   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      @@ -215,7 +215,7 @@ A streaming parser that allows reading of multiple

    JsonStreamParser

    -public JsonStreamParser(String json)
    +public JsonStreamParser(String json)
    Parameters:
    json - The string containing JSON elements concatenated to each other.
    Since:
    @@ -227,7 +227,7 @@ public JsonStreamParser(

    JsonStreamParser

    -public JsonStreamParser(Reader reader)
    +public JsonStreamParser(Reader reader)
    Parameters:
    reader - The data stream containing JSON elements concatenated to each other.
    Since:
    @@ -254,7 +254,7 @@ public JsonElement on the reader. Null if none available.

    -
    Specified by:
    next in interface Iterator<JsonElement>
    +
    Specified by:
    next in interface Iterator<JsonElement>
    @@ -275,7 +275,7 @@ public boolean hasNext()
    Returns true if a JsonElement is available on the input for consumption

    -
    Specified by:
    hasNext in interface Iterator<JsonElement>
    +
    Specified by:
    hasNext in interface Iterator<JsonElement>
    @@ -291,11 +291,11 @@ remove
     public void remove()
    -
    This optional Iterator method is not relevant for stream parsing and hence is not +
    This optional Iterator method is not relevant for stream parsing and hence is not implemented.

    -
    Specified by:
    remove in interface Iterator<JsonElement>
    +
    Specified by:
    remove in interface Iterator<JsonElement>
    Since:
    diff --git a/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html b/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html index d173b229..c19e2672 100644 --- a/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html +++ b/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html @@ -2,13 +2,13 @@ - + -JsonSyntaxException (Gson 2.1-SNAPSHOT API) +JsonSyntaxException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonSyntaxException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonSyntaxException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonSyntaxException (Gson 2.1 API)"; } } @@ -93,15 +93,15 @@ com.google.gson
    Class JsonSyntaxException
    -java.lang.Object
    -  extended by java.lang.Throwable
    -      extended by java.lang.Exception
    -          extended by java.lang.RuntimeException
    +java.lang.Object
    +  extended by java.lang.Throwable
    +      extended by java.lang.Exception
    +          extended by java.lang.RuntimeException
                   extended by com.google.gson.JsonParseException
                       extended by com.google.gson.JsonSyntaxException
     
    -
    All Implemented Interfaces:
    Serializable
    +
    All Implemented Interfaces:
    Serializable

    @@ -131,20 +131,20 @@ This exception is raised when Gson attempts to read (or write) a malformed Constructor Summary -JsonSyntaxException(String msg) +JsonSyntaxException(String msg)
                -JsonSyntaxException(String msg, - Throwable cause) +JsonSyntaxException(String msg, + Throwable cause)
                -JsonSyntaxException(Throwable cause) +JsonSyntaxException(Throwable cause)
              Creates exception with the specified cause. @@ -163,19 +163,19 @@ This exception is raised when Gson attempts to read (or write) a malformed   - + - +
    Methods inherited from class java.lang.ThrowableMethods inherited from class java.lang.Throwable
    fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringfillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -194,7 +194,7 @@ This exception is raised when Gson attempts to read (or write) a malformed

    JsonSyntaxException

    -public JsonSyntaxException(String msg)
    +public JsonSyntaxException(String msg)

    @@ -202,8 +202,8 @@ public JsonSyntaxException(

    JsonSyntaxException

    -public JsonSyntaxException(String msg,
    -                           Throwable cause)
    +public JsonSyntaxException(String msg, + Throwable cause)

    @@ -211,7 +211,7 @@ public JsonSyntaxException(

    JsonSyntaxException

    -public JsonSyntaxException(Throwable cause)
    +public JsonSyntaxException(Throwable cause)
    Creates exception with the specified cause. Consider using JsonSyntaxException(String, Throwable) instead if you can diff --git a/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html b/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html index a51c730d..e46d43dd 100644 --- a/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html +++ b/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html @@ -2,13 +2,13 @@ - + -LongSerializationPolicy (Gson 2.1-SNAPSHOT API) +LongSerializationPolicy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ LongSerializationPolicy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="LongSerializationPolicy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="LongSerializationPolicy (Gson 2.1 API)"; } } @@ -57,7 +57,7 @@ function windowTitle()  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -93,16 +93,16 @@ com.google.gson
    Enum LongSerializationPolicy
    -java.lang.Object
    -  extended by java.lang.Enum<LongSerializationPolicy>
    +java.lang.Object
    +  extended by java.lang.Enum<LongSerializationPolicy>
           extended by com.google.gson.LongSerializationPolicy
     
    -
    All Implemented Interfaces:
    Serializable, Comparable<LongSerializationPolicy>
    +
    All Implemented Interfaces:
    Serializable, Comparable<LongSerializationPolicy>

    -
    public enum LongSerializationPolicy
    extends Enum<LongSerializationPolicy>
    +
    public enum LongSerializationPolicy
    extends Enum<LongSerializationPolicy>

    @@ -152,8 +152,8 @@ Defines the expected format for a long or Long type wh - JsonElement -serialize(Long value) +abstract  JsonElement +serialize(Long value)
              Serialize this value using this serialization policy. @@ -161,7 +161,7 @@ Defines the expected format for a long or Long type wh static LongSerializationPolicy -valueOf(String name) +valueOf(String name)
              Returns the enum constant of this type with the specified name. @@ -179,19 +179,19 @@ the order they are declared.   - + - +
    Methods inherited from class java.lang.EnumMethods inherited from class java.lang.Enum
    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcompareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -269,7 +269,7 @@ the order they are declared

    valueOf

    -public static LongSerializationPolicy valueOf(String name)
    +public static LongSerializationPolicy valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an @@ -280,9 +280,9 @@ not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws: -
    IllegalArgumentException - if this enum type has no constant +
    IllegalArgumentException - if this enum type has no constant with the specified name -
    NullPointerException - if the argument is null
    +
    NullPointerException - if the argument is null

    @@ -290,7 +290,7 @@ with the specified name

    serialize

    -public JsonElement serialize(Long value)
    +public abstract JsonElement serialize(Long value)
    Serialize this value using this serialization policy.

    @@ -331,7 +331,7 @@ public  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/gson/docs/javadocs/com/google/gson/TypeAdapter.html b/gson/docs/javadocs/com/google/gson/TypeAdapter.html new file mode 100644 index 00000000..8729d642 --- /dev/null +++ b/gson/docs/javadocs/com/google/gson/TypeAdapter.html @@ -0,0 +1,408 @@ + + + + + + + +TypeAdapter (Gson 2.1 API) + + + + + + + + + + + + +


    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +com.google.gson +
    +Class TypeAdapter<T>

    +
    +java.lang.Object
    +  extended by com.google.gson.TypeAdapter<T>
    +
    +
    +
    +
    public abstract class TypeAdapter<T>
    extends Object
    + + +

    +Converts Java objects to and from JSON. + +

    Defining a type's JSON form

    + By default Gson converts application classes to JSON using its built-in type + adapters. If Gson's default JSON conversion isn't appropriate for a type, + extend this class to customize the conversion. Here's an example of a type + adapter for an (X,Y) coordinate point:
       public class PointAdapter extends TypeAdapter<Point> {
    +     public Point read(JsonReader reader) throws IOException {
    +       if (reader.peek() == JsonToken.NULL) {
    +         reader.nextNull();
    +         return null;
    +       }
    +       String xy = reader.nextString();
    +       String[] parts = xy.split(",");
    +       int x = Integer.parseInt(parts[0]);
    +       int y = Integer.parseInt(parts[1]);
    +       return new Point(x, y);
    +     }
    +     public void write(JsonWriter writer, Point value) throws IOException {
    +       if (value == null) {
    +         writer.nullValue();
    +         return;
    +       }
    +       String xy = value.getX() + "," + value.getY();
    +       writer.value(xy);
    +     }
    +   }
    + With this type adapter installed, Gson will convert Points to JSON as + strings like "5,8" rather than objects like {"x":5,"y":8}. In + this case the type adapter binds a rich Java class to a compact JSON value. + +

    The read() method must read exactly one value + and write() must write exactly one value. + For primitive types this is means readers should make exactly one call to + nextBoolean(), nextDouble(), nextInt(), nextLong(), nextString() or nextNull(). Writers should make + exactly one call to one of value() or nullValue(). + For arrays, type adapters should start with a call to beginArray(), + convert all elements, and finish with a call to endArray(). For + objects, they should start with beginObject(), convert the object, + and finish with endObject(). Failing to convert a value or converting + too many values may cause the application to crash. + +

    Type adapters should be prepared to read null from the stream and write it + to the stream. Alternatively, they should use nullSafe() method while + registering the type adapter with Gson. If your Gson instance + has been configured to GsonBuilder.serializeNulls(), these nulls will be + written to the final document. Otherwise the value (and the corresponding name + when writing to a JSON object) will be omitted automatically. In either case + your type adapter must handle null. + +

    To use a custom type adapter with Gson, you must register it with a + GsonBuilder:

       GsonBuilder builder = new GsonBuilder();
    +   builder.registerTypeAdapter(Point.class, new PointAdapter());
    +   // if PointAdapter didn't check for nulls in its read/write methods, you should instead use
    +   // builder.registerTypeAdapter(Point.class, new PointAdapter().nullSafe());
    +   ...
    +   Gson gson = builder.create();
    + 
    +

    + +

    +

    +
    Since:
    +
    2.1
    +
    +
    + +

    + + + + + + + + + + + +
    +Constructor Summary
    TypeAdapter() + +
    +           
    +  + + + + + + + + + + + + + + + + + + + +
    +Method Summary
    + TypeAdapter<T>nullSafe() + +
    +          This wrapper method is used to make a type adapter null tolerant.
    +abstract  Tread(JsonReader in) + +
    +          Reads one JSON value (an array, object, string, number, boolean or null) + and converts it to a Java object.
    +abstract  voidwrite(JsonWriter out, + T value) + +
    +          Writes one JSON value (an array, object, string, number, boolean or null) + for value.
    + + + + + + + +
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +  +

    + + + + + + + + +
    +Constructor Detail
    + +

    +TypeAdapter

    +
    +public TypeAdapter()
    +
    +
    + + + + + + + + +
    +Method Detail
    + +

    +write

    +
    +public abstract void write(JsonWriter out,
    +                           T value)
    +                    throws IOException
    +
    +
    Writes one JSON value (an array, object, string, number, boolean or null) + for value. +

    +

    +
    Parameters:
    value - the Java object to write. May be null. +
    Throws: +
    IOException
    +
    +
    +
    + +

    +nullSafe

    +
    +public final TypeAdapter<T> nullSafe()
    +
    +
    This wrapper method is used to make a type adapter null tolerant. In general, a + type adapter is required to handle nulls in write and read methods. Here is how this + is typically done:
    +
       Gson gson = new GsonBuilder().registerTypeAdapter(Foo.class,
    +   new TypeAdapter<Foo>() {
    +     public Foo read(JsonReader in) throws IOException {
    +       if (in.peek() == JsonToken.NULL) {
    +         in.nextNull();
    +         return null;
    +       }
    +       // read a Foo from in and return it
    +     }
    +     public void write(JsonWriter out, Foo src) throws IOException {
    +       if (src == null) {
    +         out.nullValue();
    +         return;
    +       }
    +       // write src as JSON to out
    +     }
    +   }).create();
    + 
    + You can avoid this boilerplate handling of nulls by wrapping your type adapter with + this method. Here is how we will rewrite the above example: +
       Gson gson = new GsonBuilder().registerTypeAdapter(Foo.class,
    +   new TypeAdapter<Foo>() {
    +     public Foo read(JsonReader in) throws IOException {
    +       // read a Foo from in and return it
    +     }
    +     public void write(JsonWriter out, Foo src) throws IOException {
    +       // write src as JSON to out
    +     }
    +   }.nullSafe()).create();
    + 
    + Note that we didn't need to check for nulls in our type adapter after we used nullSafe. +

    +

    +
    +
    +
    +
    + +

    +read

    +
    +public abstract T read(JsonReader in)
    +                throws IOException
    +
    +
    Reads one JSON value (an array, object, string, number, boolean or null) + and converts it to a Java object. Returns the converted object. +

    +

    + +
    Returns:
    the converted Java object. May be null. +
    Throws: +
    IOException
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +Copyright © 2008-2011 Google, Inc.. All Rights Reserved. + + diff --git a/gson/docs/javadocs/com/google/gson/TypeAdapterFactory.html b/gson/docs/javadocs/com/google/gson/TypeAdapterFactory.html new file mode 100644 index 00000000..e4c50f2f --- /dev/null +++ b/gson/docs/javadocs/com/google/gson/TypeAdapterFactory.html @@ -0,0 +1,354 @@ + + + + + + + +TypeAdapterFactory (Gson 2.1 API) + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + +

    + +com.google.gson +
    +Interface TypeAdapterFactory

    +
    +
    +
    public interface TypeAdapterFactory
    + + +

    +Creates type adapters for set of related types. Type adapter factories are + most useful when several types share similar structure in their JSON form. + +

    Example: Converting enums to lowercase

    + In this example, we implement a factory that creates type adapters for all + enums. The type adapters will write enums in lowercase, despite the fact + that they're defined in CONSTANT_CASE in the corresponding Java + model:
       public class LowercaseEnumTypeAdapterFactory implements TypeAdapter.Factory {
    +     public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {
    +       Class<T> rawType = (Class<T>) type.getRawType();
    +       if (!rawType.isEnum()) {
    +         return null;
    +       }
    +
    +       final Map<String, T> lowercaseToConstant = new HashMap<String, T>();
    +       for (T constant : rawType.getEnumConstants()) {
    +         lowercaseToConstant.put(toLowercase(constant), constant);
    +       }
    +
    +       return new TypeAdapter<T>() {
    +         public void write(JsonWriter out, T value) throws IOException {
    +           if (value == null) {
    +             out.nullValue();
    +           } else {
    +             out.value(toLowercase(value));
    +           }
    +         }
    +
    +         public T read(JsonReader reader) throws IOException {
    +           if (reader.peek() == JsonToken.NULL) {
    +             reader.nextNull();
    +             return null;
    +           } else {
    +             return lowercaseToConstant.get(reader.nextString());
    +           }
    +         }
    +       };
    +     }
    +
    +     private String toLowercase(Object o) {
    +       return o.toString().toLowerCase(Locale.US);
    +     }
    +   }
    + 
    + +

    Type adapter factories select which types they provide type adapters + for. If a factory cannot support a given type, it must return null when + that type is passed to create(com.google.gson.Gson, com.google.gson.reflect.TypeToken). Factories should expect create() to be called on them for many types and should return null for + most of those types. In the above example the factory returns null for + calls to create() where type is not an enum. + +

    A factory is typically called once per type, but the returned type + adapter may be used many times. It is most efficient to do expensive work + like reflection in create() so that the type adapter's read() and write() methods can be very fast. In this example the + mapping from lowercase name to enum value is computed eagerly. + +

    As with type adapters, factories must be registered with a GsonBuilder for them to take effect:

       GsonBuilder builder = new GsonBuilder();
    +  builder.registerTypeAdapterFactory(new LowercaseEnumTypeAdapterFactory());
    +  ...
    +  Gson gson = builder.create();
    + 
    + If multiple factories support the same type, the factory registered earlier + takes precedence. + +

    Example: composing other type adapters

    + In this example we implement a factory for Guava's Multiset + collection type. The factory can be used to create type adapters for + multisets of any element type: the type adapter for Multiset<String> is different from the type adapter for Multiset<URL>. + +

    The type adapter delegates to another type adapter for the + multiset elements. It figures out the element type by reflecting on the + multiset's type token. A Gson is passed in to create for + just this purpose:

       public class MultisetTypeAdapterFactory implements TypeAdapter.Factory {
    +     public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {
    +       Type type = typeToken.getType();
    +       if (typeToken.getRawType() != Multiset.class
    +           || !(type instanceof ParameterizedType)) {
    +         return null;
    +       }
    +
    +       Type elementType = ((ParameterizedType) type).getActualTypeArguments()[0];
    +       TypeAdapter<?> elementAdapter = gson.getAdapter(TypeToken.get(elementType));
    +       return (TypeAdapter<T>) newMultisetAdapter(elementAdapter);
    +     }
    +
    +     private <E> TypeAdapter<Multiset<E>> newMultisetAdapter(
    +         final TypeAdapter<E> elementAdapter) {
    +       return new TypeAdapter<Multiset<E>>() {
    +         public void write(JsonWriter out, Multiset<E> value) throws IOException {
    +           if (value == null) {
    +             out.nullValue();
    +             return;
    +           }
    +
    +           out.beginArray();
    +           for (Multiset.Entry<E> entry : value.entrySet()) {
    +             out.value(entry.getCount());
    +             elementAdapter.write(out, entry.getElement());
    +           }
    +           out.endArray();
    +         }
    +
    +         public Multiset<E> read(JsonReader in) throws IOException {
    +           if (in.peek() == JsonToken.NULL) {
    +             in.nextNull();
    +             return null;
    +           }
    +
    +           Multiset<E> result = LinkedHashMultiset.create();
    +           in.beginArray();
    +           while (in.hasNext()) {
    +             int count = in.nextInt();
    +             E element = elementAdapter.read(in);
    +             result.add(element, count);
    +           }
    +           in.endArray();
    +           return result;
    +         }
    +       };
    +     }
    +   }
    + 
    + Delegating from one type adapter to another is extremely powerful; it's + the foundation of how Gson converts Java objects and collections. Whenever + possible your factory should retrieve its delegate type adapter in the + create() method; this ensures potentially-expensive type adapter + creation happens only once. +

    + +

    +

    +
    Since:
    +
    2.1
    +
    +
    + +

    + + + + + + + + + + + + +
    +Method Summary
    + + + + + +
    +<T> TypeAdapter<T>
    +
    create(Gson gson, + TypeToken<T> type) + +
    +          Returns a type adapter for type, or null if this factory doesn't + support type.
    +  +

    + + + + + + + + +
    +Method Detail
    + +

    +create

    +
    +<T> TypeAdapter<T> create(Gson gson,
    +                          TypeToken<T> type)
    +
    +
    Returns a type adapter for type, or null if this factory doesn't + support type. +

    +

    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    +Copyright © 2008-2011 Google, Inc.. All Rights Reserved. + + diff --git a/gson/docs/javadocs/com/google/gson/annotations/Expose.html b/gson/docs/javadocs/com/google/gson/annotations/Expose.html index 9405844f..270a61e2 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/Expose.html +++ b/gson/docs/javadocs/com/google/gson/annotations/Expose.html @@ -2,13 +2,13 @@ - + -Expose (Gson 2.1-SNAPSHOT API) +Expose (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Expose (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Expose (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Expose (Gson 2.1 API)"; } } @@ -94,8 +94,8 @@ com.google.gson.annotations
    Annotation Type Expose
    -
    @Retention(value=RUNTIME)
    -@Target(value=FIELD)
    +
    @Retention(value=RUNTIME)
    +@Target(value=FIELD)
     public @interface Expose
    diff --git a/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html b/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html index 76053f8c..fcb1d3f2 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html +++ b/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html @@ -2,13 +2,13 @@ - + -SerializedName (Gson 2.1-SNAPSHOT API) +SerializedName (Gson 2.1 API) - + @@ -16,7 +16,7 @@ SerializedName (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="SerializedName (Gson 2.1-SNAPSHOT API)"; + parent.document.title="SerializedName (Gson 2.1 API)"; } } @@ -94,8 +94,8 @@ com.google.gson.annotations Annotation Type SerializedName
    -
    @Retention(value=RUNTIME)
    -@Target(value=FIELD)
    +
    @Retention(value=RUNTIME)
    +@Target(value=FIELD)
     public @interface SerializedName
    @@ -155,7 +155,7 @@ An annotation that indicates this member should be serialized to JSON with - String + String value
    @@ -178,7 +178,7 @@ An annotation that indicates this member should be serialized to JSON with

    value

    -public abstract String value
    +public abstract String value
    diff --git a/gson/docs/javadocs/com/google/gson/annotations/Since.html b/gson/docs/javadocs/com/google/gson/annotations/Since.html index 83956807..cb86194d 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/Since.html +++ b/gson/docs/javadocs/com/google/gson/annotations/Since.html @@ -2,13 +2,13 @@ - + -Since (Gson 2.1-SNAPSHOT API) +Since (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Since (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Since (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Since (Gson 2.1 API)"; } } @@ -94,8 +94,8 @@ com.google.gson.annotations Annotation Type Since
    -
    @Retention(value=RUNTIME)
    -@Target(value={FIELD,TYPE})
    +
    @Retention(value=RUNTIME)
    +@Target(value={FIELD,TYPE})
     public @interface Since
    diff --git a/gson/docs/javadocs/com/google/gson/annotations/Until.html b/gson/docs/javadocs/com/google/gson/annotations/Until.html index 2fe9d920..a8e136e5 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/Until.html +++ b/gson/docs/javadocs/com/google/gson/annotations/Until.html @@ -2,13 +2,13 @@ - + -Until (Gson 2.1-SNAPSHOT API) +Until (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Until (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Until (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Until (Gson 2.1 API)"; } } @@ -94,8 +94,8 @@ com.google.gson.annotations Annotation Type Until
    -
    @Retention(value=RUNTIME)
    -@Target(value={FIELD,TYPE})
    +
    @Retention(value=RUNTIME)
    +@Target(value={FIELD,TYPE})
     public @interface Until
    diff --git a/gson/docs/javadocs/com/google/gson/annotations/class-use/Expose.html b/gson/docs/javadocs/com/google/gson/annotations/class-use/Expose.html index 3990088c..42159691 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/class-use/Expose.html +++ b/gson/docs/javadocs/com/google/gson/annotations/class-use/Expose.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.annotations.Expose (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.annotations.Expose (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.annotations.Expose (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.annotations.Expose (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.annotations.Expose (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/annotations/class-use/SerializedName.html b/gson/docs/javadocs/com/google/gson/annotations/class-use/SerializedName.html index e838ad9b..cc8a7d03 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/class-use/SerializedName.html +++ b/gson/docs/javadocs/com/google/gson/annotations/class-use/SerializedName.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.annotations.SerializedName (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.annotations.SerializedName (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.annotations.SerializedName (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.annotations.SerializedName (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.annotations.SerializedName (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/annotations/class-use/Since.html b/gson/docs/javadocs/com/google/gson/annotations/class-use/Since.html index 083bb7cb..98ee3fe5 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/class-use/Since.html +++ b/gson/docs/javadocs/com/google/gson/annotations/class-use/Since.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.annotations.Since (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.annotations.Since (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.annotations.Since (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.annotations.Since (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.annotations.Since (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/annotations/class-use/Until.html b/gson/docs/javadocs/com/google/gson/annotations/class-use/Until.html index d96ec484..a2345e00 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/class-use/Until.html +++ b/gson/docs/javadocs/com/google/gson/annotations/class-use/Until.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.annotations.Until (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.annotations.Until (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.annotations.Until (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.annotations.Until (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.annotations.Until (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/annotations/package-frame.html b/gson/docs/javadocs/com/google/gson/annotations/package-frame.html index e9843dff..9e8df81b 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/package-frame.html +++ b/gson/docs/javadocs/com/google/gson/annotations/package-frame.html @@ -2,13 +2,13 @@ - + -com.google.gson.annotations (Gson 2.1-SNAPSHOT API) +com.google.gson.annotations (Gson 2.1 API) - + diff --git a/gson/docs/javadocs/com/google/gson/annotations/package-summary.html b/gson/docs/javadocs/com/google/gson/annotations/package-summary.html index 46242c1f..8b5ca0cd 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/package-summary.html +++ b/gson/docs/javadocs/com/google/gson/annotations/package-summary.html @@ -2,13 +2,13 @@ - + -com.google.gson.annotations (Gson 2.1-SNAPSHOT API) +com.google.gson.annotations (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.annotations (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.annotations (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.annotations (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/annotations/package-tree.html b/gson/docs/javadocs/com/google/gson/annotations/package-tree.html index 489391e0..aa02afec 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/package-tree.html +++ b/gson/docs/javadocs/com/google/gson/annotations/package-tree.html @@ -2,13 +2,13 @@ - + -com.google.gson.annotations Class Hierarchy (Gson 2.1-SNAPSHOT API) +com.google.gson.annotations Class Hierarchy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.annotations Class Hierarchy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.annotations Class Hierarchy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.annotations Class Hierarchy (Gson 2.1 API)"; } } @@ -92,10 +92,10 @@ Hierarchy For Package com.google.gson.annotations Annotation Type Hierarchy
    diff --git a/gson/docs/javadocs/com/google/gson/annotations/package-use.html b/gson/docs/javadocs/com/google/gson/annotations/package-use.html index 9b0804a6..a896e0ae 100644 --- a/gson/docs/javadocs/com/google/gson/annotations/package-use.html +++ b/gson/docs/javadocs/com/google/gson/annotations/package-use.html @@ -2,13 +2,13 @@ - + -Uses of Package com.google.gson.annotations (Gson 2.1-SNAPSHOT API) +Uses of Package com.google.gson.annotations (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Package com.google.gson.annotations (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Package com.google.gson.annotations (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Package com.google.gson.annotations (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html b/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html index fc214724..89d944c2 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html +++ b/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.ExclusionStrategy (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.ExclusionStrategy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.ExclusionStrategy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.ExclusionStrategy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.ExclusionStrategy (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/FieldAttributes.html b/gson/docs/javadocs/com/google/gson/class-use/FieldAttributes.html index 6be58ee4..c8db15bc 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/FieldAttributes.html +++ b/gson/docs/javadocs/com/google/gson/class-use/FieldAttributes.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.FieldAttributes (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.FieldAttributes (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.FieldAttributes (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.FieldAttributes (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.FieldAttributes (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/FieldNamingPolicy.html b/gson/docs/javadocs/com/google/gson/class-use/FieldNamingPolicy.html index 37db7b23..9e841c83 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/FieldNamingPolicy.html +++ b/gson/docs/javadocs/com/google/gson/class-use/FieldNamingPolicy.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.FieldNamingPolicy (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.FieldNamingPolicy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.FieldNamingPolicy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.FieldNamingPolicy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.FieldNamingPolicy (Gson 2.1 API)"; } } @@ -115,7 +115,7 @@ Uses of static FieldNamingPolicy -FieldNamingPolicy.valueOf(String name) +FieldNamingPolicy.valueOf(String name)
              Returns the enum constant of this type with the specified name. diff --git a/gson/docs/javadocs/com/google/gson/class-use/FieldNamingStrategy.html b/gson/docs/javadocs/com/google/gson/class-use/FieldNamingStrategy.html index 256d7e02..9f7a5e82 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/FieldNamingStrategy.html +++ b/gson/docs/javadocs/com/google/gson/class-use/FieldNamingStrategy.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.FieldNamingStrategy (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.FieldNamingStrategy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.FieldNamingStrategy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.FieldNamingStrategy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.FieldNamingStrategy (Gson 2.1 API)"; } } @@ -108,6 +108,22 @@ Uses of + +Classes in com.google.gson that implement FieldNamingStrategy
    + + + + class +FieldNamingPolicy + +
    +          An enumeration that defines a few standard naming conventions for JSON field names. + + +  +

    + diff --git a/gson/docs/javadocs/com/google/gson/class-use/Gson.html b/gson/docs/javadocs/com/google/gson/class-use/Gson.html index 1a323541..3517fd70 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/Gson.html +++ b/gson/docs/javadocs/com/google/gson/class-use/Gson.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.Gson (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.Gson (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.Gson (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.Gson (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.Gson (Gson 2.1 API)"; } } @@ -123,6 +123,31 @@ Uses of + + + + + + + +
    Methods in com.google.gson with parameters of type FieldNamingStrategy
    Methods in com.google.gson with parameters of type Gson
    + + + + + +
    +<T> TypeAdapter<T>
    +
    TypeAdapterFactory.create(Gson gson, + TypeToken<T> type) + +
    +          Returns a type adapter for type, or null if this factory doesn't + support type.
    +  +


    diff --git a/gson/docs/javadocs/com/google/gson/class-use/GsonBuilder.html b/gson/docs/javadocs/com/google/gson/class-use/GsonBuilder.html index 5522264d..7de18cae 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/GsonBuilder.html +++ b/gson/docs/javadocs/com/google/gson/class-use/GsonBuilder.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.GsonBuilder (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.GsonBuilder (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.GsonBuilder (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.GsonBuilder (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.GsonBuilder (Gson 2.1 API)"; } } @@ -182,8 +182,8 @@ Uses of  GsonBuilder -GsonBuilder.registerTypeAdapter(Type type, - Object typeAdapter) +GsonBuilder.registerTypeAdapter(Type type, + Object typeAdapter)
              Configures Gson for custom serialization or deserialization. @@ -191,8 +191,16 @@ Uses of  GsonBuilder -GsonBuilder.registerTypeHierarchyAdapter(Class<?> baseType, - Object typeAdapter) +GsonBuilder.registerTypeAdapterFactory(TypeAdapterFactory factory) + +
    +          Register a factory for type adapters. + + + + GsonBuilder +GsonBuilder.registerTypeHierarchyAdapter(Class<?> baseType, + Object typeAdapter)
              Configures Gson for custom serialization or deserialization for an inheritance type hierarchy. @@ -234,7 +242,7 @@ Uses of  GsonBuilder -GsonBuilder.setDateFormat(String pattern) +GsonBuilder.setDateFormat(String pattern)
              Configures Gson to serialize Date objects according to the pattern provided. diff --git a/gson/docs/javadocs/com/google/gson/class-use/InstanceCreator.html b/gson/docs/javadocs/com/google/gson/class-use/InstanceCreator.html index 3fdd9160..d2e9bd6b 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/InstanceCreator.html +++ b/gson/docs/javadocs/com/google/gson/class-use/InstanceCreator.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.InstanceCreator (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.InstanceCreator (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.InstanceCreator (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.InstanceCreator (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.InstanceCreator (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonArray.html b/gson/docs/javadocs/com/google/gson/class-use/JsonArray.html index a7ca0acd..c1cc59c2 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonArray.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonArray.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonArray (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonArray (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonArray (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonArray (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonArray (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of  JsonArray -JsonObject.getAsJsonArray(String memberName) +JsonObject.getAsJsonArray(String memberName)
              Convenience method to get the specified member as a JsonArray. diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializationContext.html b/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializationContext.html index 371334cb..5c1d2873 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializationContext.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializationContext.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.JsonDeserializationContext (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.JsonDeserializationContext (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.JsonDeserializationContext (Gson 2.1-SNAPSHOT function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.JsonDeserializationContext (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.JsonDeserializationContext (Gson 2.1 API)"; } } @@ -116,7 +116,7 @@ Uses of  T JsonDeserializer.deserialize(JsonElement json, - Type typeOfT, + Type typeOfT, JsonDeserializationContext context)
    diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializer.html b/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializer.html index 8f72ccfc..368808c3 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializer.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonDeserializer.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.JsonDeserializer (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.JsonDeserializer (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.JsonDeserializer (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.JsonDeserializer (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.JsonDeserializer (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonElement.html b/gson/docs/javadocs/com/google/gson/class-use/JsonElement.html index 96567c30..b0fdffb0 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonElement.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonElement.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonElement (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonElement (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonElement (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonElement (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonElement (Gson 2.1 API)"; } } @@ -163,7 +163,7 @@ Uses of  JsonElement -JsonObject.get(String memberName) +JsonObject.get(String memberName)
              Returns the member with the specified name. @@ -187,7 +187,7 @@ Uses of  JsonElement -JsonParser.parse(Reader json) +JsonParser.parse(Reader json)
              Parses the specified JSON string into a parse tree @@ -195,7 +195,7 @@ Uses of  JsonElement -JsonParser.parse(String json) +JsonParser.parse(String json)
              Parses the specified JSON string into a parse tree @@ -203,15 +203,15 @@ Uses of  JsonElement -JsonObject.remove(String property) +JsonObject.remove(String property)
              Removes the property from this JsonObject. - JsonElement -LongSerializationPolicy.serialize(Long value) +abstract  JsonElement +LongSerializationPolicy.serialize(Long value)
              Serialize this value using this serialization policy. @@ -219,7 +219,7 @@ Uses of  JsonElement -JsonSerializationContext.serialize(Object src) +JsonSerializationContext.serialize(Object src)
              Invokes default serialization on the specified object. @@ -227,8 +227,8 @@ Uses of  JsonElement -JsonSerializationContext.serialize(Object src, - Type typeOfSrc) +JsonSerializationContext.serialize(Object src, + Type typeOfSrc)
              Invokes default serialization on the specified object passing the specific type information. @@ -237,7 +237,7 @@ Uses of  JsonElement JsonSerializer.serialize(T src, - Type typeOfSrc, + Type typeOfSrc, JsonSerializationContext context)
    @@ -247,7 +247,7 @@ Uses of  JsonElement -Gson.toJsonTree(Object src) +Gson.toJsonTree(Object src)
              This method serializes the specified object into its equivalent representation as a tree of @@ -256,8 +256,8 @@ Uses of  JsonElement -Gson.toJsonTree(Object src, - Type typeOfSrc) +Gson.toJsonTree(Object src, + Type typeOfSrc)
              This method serializes the specified object, including those of generic types, into its @@ -273,7 +273,7 @@ Uses of - Set<Map.Entry<String,JsonElement>> + Set<Map.Entry<String,JsonElement>> JsonObject.entrySet()
    @@ -281,7 +281,7 @@ Uses of - Iterator<JsonElement> + Iterator<JsonElement> JsonArray.iterator()
    @@ -306,7 +306,7 @@ Uses of  void -JsonObject.add(String property, +JsonObject.add(String property, JsonElement value)
    @@ -323,7 +323,7 @@ Uses of deserialize(JsonElement json, - Type typeOfT)
    + Type typeOfT)
              Invokes default deserialization on the specified object. @@ -332,7 +332,7 @@ Uses of  T JsonDeserializer.deserialize(JsonElement json, - Type typeOfT, + Type typeOfT, JsonDeserializationContext context)
    @@ -350,7 +350,7 @@ Uses of fromJson(JsonElement json, - Class<T> classOfT) + Class<T> classOfT)
              This method deserializes the Json read from the specified parse tree into an object of the @@ -367,7 +367,7 @@ Uses of fromJson(JsonElement json, - Type typeOfT) + Type typeOfT)
              This method deserializes the Json read from the specified parse tree into an object of the @@ -375,7 +375,7 @@ Uses of - String + String Gson.toJson(JsonElement jsonElement)
    @@ -385,7 +385,7 @@ Uses of  void Gson.toJson(JsonElement jsonElement, - Appendable writer) + Appendable writer)
              Writes out the equivalent JSON for a tree of JsonElements. diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonIOException.html b/gson/docs/javadocs/com/google/gson/class-use/JsonIOException.html index e21a727d..2dcb2070 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonIOException.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonIOException.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonIOException (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonIOException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonIOException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonIOException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonIOException (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of fromJson(JsonReader reader, - Type typeOfT) + Type typeOfT)
              Reads the next JSON value from reader and convert it to an object @@ -139,8 +139,8 @@ Uses of fromJson(Reader json, - Class<T> classOfT) +Gson.fromJson(Reader json, + Class<T> classOfT)
              This method deserializes the Json read from the specified reader into an object of the @@ -156,8 +156,8 @@ Uses of fromJson(Reader json, - Type typeOfT) +Gson.fromJson(Reader json, + Type typeOfT)
              This method deserializes the Json read from the specified reader into an object of the @@ -174,7 +174,7 @@ Uses of  JsonElement -JsonParser.parse(Reader json) +JsonParser.parse(Reader json)
              Parses the specified JSON string into a parse tree @@ -183,7 +183,7 @@ Uses of  void Gson.toJson(JsonElement jsonElement, - Appendable writer) + Appendable writer)
              Writes out the equivalent JSON for a tree of JsonElements. @@ -200,8 +200,8 @@ Uses of  void -Gson.toJson(Object src, - Appendable writer) +Gson.toJson(Object src, + Appendable writer)
              This method serializes the specified object into its equivalent Json representation. @@ -209,9 +209,9 @@ Uses of  void -Gson.toJson(Object src, - Type typeOfSrc, - Appendable writer) +Gson.toJson(Object src, + Type typeOfSrc, + Appendable writer)
              This method serializes the specified object, including those of generic types, into its @@ -220,8 +220,8 @@ Uses of  void -Gson.toJson(Object src, - Type typeOfSrc, +Gson.toJson(Object src, + Type typeOfSrc, JsonWriter writer)
    diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonNull.html b/gson/docs/javadocs/com/google/gson/class-use/JsonNull.html index b7b91d19..d9d60cb1 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonNull.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonNull.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonNull (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonNull (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonNull (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonNull (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonNull (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonObject.html b/gson/docs/javadocs/com/google/gson/class-use/JsonObject.html index 9c32ad93..042d1c46 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonObject.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonObject.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonObject (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonObject (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonObject (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonObject (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonObject (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of  JsonObject -JsonObject.getAsJsonObject(String memberName) +JsonObject.getAsJsonObject(String memberName)
              Convenience method to get the specified member as a JsonObject. diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonParseException.html b/gson/docs/javadocs/com/google/gson/class-use/JsonParseException.html index c6fc1fc6..b3935fd8 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonParseException.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonParseException.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonParseException (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonParseException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonParseException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonParseException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonParseException (Gson 2.1 API)"; } } @@ -149,7 +149,7 @@ Uses of deserialize(JsonElement json, - Type typeOfT)
    + Type typeOfT)
              Invokes default deserialization on the specified object. @@ -158,7 +158,7 @@ Uses of  T JsonDeserializer.deserialize(JsonElement json, - Type typeOfT, + Type typeOfT, JsonDeserializationContext context)
    diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonParser.html b/gson/docs/javadocs/com/google/gson/class-use/JsonParser.html index aa8a7ea7..adc73297 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonParser.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonParser.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonParser (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonParser (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonParser (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonParser (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonParser (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonPrimitive.html b/gson/docs/javadocs/com/google/gson/class-use/JsonPrimitive.html index 129a4d71..5343b7ed 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonPrimitive.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonPrimitive.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonPrimitive (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonPrimitive (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonPrimitive (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonPrimitive (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonPrimitive (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of  JsonPrimitive -JsonObject.getAsJsonPrimitive(String memberName) +JsonObject.getAsJsonPrimitive(String memberName)
              Convenience method to get the specified member as a JsonPrimitive element. diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonSerializationContext.html b/gson/docs/javadocs/com/google/gson/class-use/JsonSerializationContext.html index d50975d3..09dbdafa 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonSerializationContext.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonSerializationContext.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.JsonSerializationContext (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.JsonSerializationContext (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.JsonSerializationContext (Gson 2.1-SNAPSHOT AP function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.JsonSerializationContext (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.JsonSerializationContext (Gson 2.1 API)"; } } @@ -116,7 +116,7 @@ Uses of  JsonElement JsonSerializer.serialize(T src, - Type typeOfSrc, + Type typeOfSrc, JsonSerializationContext context)
    diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonSerializer.html b/gson/docs/javadocs/com/google/gson/class-use/JsonSerializer.html index f7a64cf1..5458787c 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonSerializer.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonSerializer.html @@ -2,13 +2,13 @@ - + -Uses of Interface com.google.gson.JsonSerializer (Gson 2.1-SNAPSHOT API) +Uses of Interface com.google.gson.JsonSerializer (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Interface com.google.gson.JsonSerializer (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Interface com.google.gson.JsonSerializer (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Interface com.google.gson.JsonSerializer (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonStreamParser.html b/gson/docs/javadocs/com/google/gson/class-use/JsonStreamParser.html index cffecd2b..5fc7f76d 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonStreamParser.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonStreamParser.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonStreamParser (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonStreamParser (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonStreamParser (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonStreamParser (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonStreamParser (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/class-use/JsonSyntaxException.html b/gson/docs/javadocs/com/google/gson/class-use/JsonSyntaxException.html index 06005e5a..35f61786 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/JsonSyntaxException.html +++ b/gson/docs/javadocs/com/google/gson/class-use/JsonSyntaxException.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.JsonSyntaxException (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.JsonSyntaxException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.JsonSyntaxException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.JsonSyntaxException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.JsonSyntaxException (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of fromJson(JsonElement json, - Class<T> classOfT) + Class<T> classOfT)
              This method deserializes the Json read from the specified parse tree into an object of the @@ -140,7 +140,7 @@ Uses of fromJson(JsonElement json, - Type typeOfT) + Type typeOfT)
              This method deserializes the Json read from the specified parse tree into an object of the @@ -157,7 +157,7 @@ Uses of fromJson(JsonReader reader, - Type typeOfT) + Type typeOfT)
              Reads the next JSON value from reader and convert it to an object @@ -173,8 +173,8 @@ Uses of fromJson(Reader json, - Class<T> classOfT) +Gson.fromJson(Reader json, + Class<T> classOfT)
              This method deserializes the Json read from the specified reader into an object of the @@ -190,8 +190,8 @@ Uses of fromJson(Reader json, - Type typeOfT) +Gson.fromJson(Reader json, + Type typeOfT)
              This method deserializes the Json read from the specified reader into an object of the @@ -207,8 +207,8 @@ Uses of fromJson(String json, - Class<T> classOfT) +Gson.fromJson(String json, + Class<T> classOfT)
              This method deserializes the specified Json into an object of the specified class. @@ -223,8 +223,8 @@ Uses of fromJson(String json, - Type typeOfT) +Gson.fromJson(String json, + Type typeOfT)
              This method deserializes the specified Json into an object of the specified type. @@ -240,7 +240,7 @@ Uses of  JsonElement -JsonParser.parse(Reader json) +JsonParser.parse(Reader json)
              Parses the specified JSON string into a parse tree @@ -248,7 +248,7 @@ Uses of  JsonElement -JsonParser.parse(String json) +JsonParser.parse(String json)
              Parses the specified JSON string into a parse tree diff --git a/gson/docs/javadocs/com/google/gson/class-use/LongSerializationPolicy.html b/gson/docs/javadocs/com/google/gson/class-use/LongSerializationPolicy.html index fe0355d9..4f5e009e 100644 --- a/gson/docs/javadocs/com/google/gson/class-use/LongSerializationPolicy.html +++ b/gson/docs/javadocs/com/google/gson/class-use/LongSerializationPolicy.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.LongSerializationPolicy (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.LongSerializationPolicy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.LongSerializationPolicy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.LongSerializationPolicy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.LongSerializationPolicy (Gson 2.1 API)"; } } @@ -115,7 +115,7 @@ Uses of static LongSerializationPolicy -LongSerializationPolicy.valueOf(String name) +LongSerializationPolicy.valueOf(String name)
              Returns the enum constant of this type with the specified name. diff --git a/gson/docs/javadocs/com/google/gson/class-use/TypeAdapter.html b/gson/docs/javadocs/com/google/gson/class-use/TypeAdapter.html new file mode 100644 index 00000000..029fe18c --- /dev/null +++ b/gson/docs/javadocs/com/google/gson/class-use/TypeAdapter.html @@ -0,0 +1,229 @@ + + + + + + + +Uses of Class com.google.gson.TypeAdapter (Gson 2.1 API) + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    +

    +Uses of Class
    com.google.gson.TypeAdapter

    +
    + + + + + + + + + +
    +Packages that use TypeAdapter
    com.google.gsonThis package provides the Gson class to convert Json to Java and + vice-versa. 
    +  +

    + + + + + +
    +Uses of TypeAdapter in com.google.gson
    +  +

    + + + + + + + + + + + + + + + + + + + + + +
    Methods in com.google.gson that return TypeAdapter
    + + + + + +
    +<T> TypeAdapter<T>
    +
    TypeAdapterFactory.create(Gson gson, + TypeToken<T> type) + +
    +          Returns a type adapter for type, or null if this factory doesn't + support type.
    + + + + + +
    +<T> TypeAdapter<T>
    +
    Gson.getAdapter(Class<T> type) + +
    +          Returns the type adapter for type.
    + + + + + +
    +<T> TypeAdapter<T>
    +
    Gson.getAdapter(TypeToken<T> type) + +
    +          Returns the type adapter for type.
    + TypeAdapter<T>TypeAdapter.nullSafe() + +
    +          This wrapper method is used to make a type adapter null tolerant.
    +  +

    +


    + + + + + + + + + + + + + + + +
    + +
    + + + +
    +Copyright © 2008-2011 Google, Inc.. All Rights Reserved. + + diff --git a/gson/docs/javadocs/com/google/gson/class-use/TypeAdapterFactory.html b/gson/docs/javadocs/com/google/gson/class-use/TypeAdapterFactory.html new file mode 100644 index 00000000..baf965c4 --- /dev/null +++ b/gson/docs/javadocs/com/google/gson/class-use/TypeAdapterFactory.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Interface com.google.gson.TypeAdapterFactory (Gson 2.1 API) + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    +

    +Uses of Interface
    com.google.gson.TypeAdapterFactory

    +
    + + + + + + + + + +
    +Packages that use TypeAdapterFactory
    com.google.gsonThis package provides the Gson class to convert Json to Java and + vice-versa. 
    +  +

    + + + + + +
    +Uses of TypeAdapterFactory in com.google.gson
    +  +

    + + + + + + + + + +
    Methods in com.google.gson with parameters of type TypeAdapterFactory
    + GsonBuilderGsonBuilder.registerTypeAdapterFactory(TypeAdapterFactory factory) + +
    +          Register a factory for type adapters.
    +  +

    +


    + + + + + + + + + + + + + + + +
    + +
    + + + +
    +Copyright © 2008-2011 Google, Inc.. All Rights Reserved. + + diff --git a/gson/docs/javadocs/com/google/gson/package-frame.html b/gson/docs/javadocs/com/google/gson/package-frame.html index 51825055..65ec2c2a 100644 --- a/gson/docs/javadocs/com/google/gson/package-frame.html +++ b/gson/docs/javadocs/com/google/gson/package-frame.html @@ -2,13 +2,13 @@ - + -com.google.gson (Gson 2.1-SNAPSHOT API) +com.google.gson (Gson 2.1 API) - + @@ -36,7 +36,9 @@ Interfaces 
    JsonSerializationContext
    -JsonSerializer +JsonSerializer +
    +TypeAdapterFactory @@ -65,7 +67,9 @@ Classes 
    JsonPrimitive
    -JsonStreamParser +JsonStreamParser +
    +TypeAdapter diff --git a/gson/docs/javadocs/com/google/gson/package-summary.html b/gson/docs/javadocs/com/google/gson/package-summary.html index 0ed9f6a2..742966f7 100644 --- a/gson/docs/javadocs/com/google/gson/package-summary.html +++ b/gson/docs/javadocs/com/google/gson/package-summary.html @@ -2,13 +2,13 @@ - + -com.google.gson (Gson 2.1-SNAPSHOT API) +com.google.gson (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson (Gson 2.1 API)"; } } @@ -129,6 +129,10 @@ This package provides the JsonSerializer<T> Interface representing a custom serializer for Json. + +TypeAdapterFactory +Creates type adapters for set of related types. +   @@ -181,6 +185,10 @@ This package provides the JsonElements from the specified reader asynchronously. + +TypeAdapter<T> +Converts Java objects to and from JSON. +   diff --git a/gson/docs/javadocs/com/google/gson/package-tree.html b/gson/docs/javadocs/com/google/gson/package-tree.html index 038de4bc..902061de 100644 --- a/gson/docs/javadocs/com/google/gson/package-tree.html +++ b/gson/docs/javadocs/com/google/gson/package-tree.html @@ -2,13 +2,13 @@ - + -com.google.gson Class Hierarchy (Gson 2.1-SNAPSHOT API) +com.google.gson Class Hierarchy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson Class Hierarchy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson Class Hierarchy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson Class Hierarchy (Gson 2.1 API)"; } } @@ -92,35 +92,36 @@ Hierarchy For Package com.google.gson Class Hierarchy

    @@ -137,7 +137,7 @@ Represents a generic type T. Java doesn't yet provide a way to  boolean -equals(Object o) +equals(Object o)
                @@ -152,7 +152,7 @@ Represents a generic type T. Java doesn't yet provide a way to -get(Class<T> type) +get(Class<T> type)
              Gets type literal for the given Class instance. @@ -160,14 +160,14 @@ Represents a generic type T. Java doesn't yet provide a way to static TypeToken<?> -get(Type type) +get(Type type)
              Gets type literal for the given Type instance. - Class<? super T> + Class<? super T> getRawType()
    @@ -175,7 +175,7 @@ Represents a generic type T. Java doesn't yet provide a way to - Type + Type getType()
    @@ -192,7 +192,7 @@ Represents a generic type T. Java doesn't yet provide a way to  boolean -isAssignableFrom(Class<?> cls) +isAssignableFrom(Class<?> cls)
              Deprecated. this implementation may be inconsistent with javac for types @@ -201,7 +201,7 @@ Represents a generic type T. Java doesn't yet provide a way to  boolean -isAssignableFrom(Type from) +isAssignableFrom(Type from)
              Deprecated. this implementation may be inconsistent with javac for types @@ -218,7 +218,7 @@ Represents a generic type T. Java doesn't yet provide a way to - String + String toString()
    @@ -228,10 +228,10 @@ Represents a generic type T. Java doesn't yet provide a way to   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -250,7 +250,7 @@ Represents a generic type T. Java doesn't yet provide a way to

    getRawType

    -public final Class<? super T> getRawType()
    +public final Class<? super T> getRawType()
    Returns the raw (non-generic) type for this type.

    @@ -263,7 +263,7 @@ public final

    getType

    -public final Type getType()
    +public final Type getType()
    Gets underlying Type instance.

    @@ -276,8 +276,8 @@ public final

    isAssignableFrom

    -@Deprecated
    -public boolean isAssignableFrom(Class<?> cls)
    +@Deprecated +public boolean isAssignableFrom(Class<?> cls)
    Deprecated. this implementation may be inconsistent with javac for types with wildcards. @@ -293,8 +293,8 @@ isAssignableFrom

    isAssignableFrom

    -@Deprecated
    -public boolean isAssignableFrom(Type from)
    +@Deprecated +public boolean isAssignableFrom(Type from)
    Deprecated. this implementation may be inconsistent with javac for types with wildcards. @@ -310,7 +310,7 @@ isAssignableFrom

    isAssignableFrom

    -@Deprecated
    +@Deprecated
     public boolean isAssignableFrom(TypeToken<?> token)
    Deprecated. this implementation may be inconsistent with javac for types @@ -330,7 +330,7 @@ hashCode public final int hashCode()
    -
    Overrides:
    hashCode in class Object
    +
    Overrides:
    hashCode in class Object
    @@ -341,10 +341,10 @@ public final int hashCode()

    equals

    -public final boolean equals(Object o)
    +public final boolean equals(Object o)
    -
    Overrides:
    equals in class Object
    +
    Overrides:
    equals in class Object
    @@ -355,10 +355,10 @@ public final boolean equals(

    toString

    -public final String toString()
    +public final String toString()
    -
    Overrides:
    toString in class Object
    +
    Overrides:
    toString in class Object
    @@ -369,7 +369,7 @@ public final

    get

    -public static TypeToken<?> get(Type type)
    +public static TypeToken<?> get(Type type)
    Gets type literal for the given Type instance.

    @@ -382,7 +382,7 @@ public static

    get

    -public static <T> TypeToken<T> get(Class<T> type)
    +public static <T> TypeToken<T> get(Class<T> type)
    Gets type literal for the given Class instance.

    diff --git a/gson/docs/javadocs/com/google/gson/reflect/class-use/TypeToken.html b/gson/docs/javadocs/com/google/gson/reflect/class-use/TypeToken.html index eee97cef..4760aa78 100644 --- a/gson/docs/javadocs/com/google/gson/reflect/class-use/TypeToken.html +++ b/gson/docs/javadocs/com/google/gson/reflect/class-use/TypeToken.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.reflect.TypeToken (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.reflect.TypeToken (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.reflect.TypeToken (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.reflect.TypeToken (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.reflect.TypeToken (Gson 2.1 API)"; } } @@ -91,12 +91,66 @@ function windowTitle() Packages that use TypeToken +com.google.gson +This package provides the Gson class to convert Json to Java and + vice-versa.  + + com.google.gson.reflect This package provides utility classes for finding type information for generic types.   

    + + + + + +
    +Uses of TypeToken in com.google.gson
    +  +

    + + + + + + + + + + + + + +
    Methods in com.google.gson with parameters of type TypeToken
    + + + + + +
    +<T> TypeAdapter<T>
    +
    TypeAdapterFactory.create(Gson gson, + TypeToken<T> type) + +
    +          Returns a type adapter for type, or null if this factory doesn't + support type.
    + + + + + +
    +<T> TypeAdapter<T>
    +
    Gson.getAdapter(TypeToken<T> type) + +
    +          Returns the type adapter for type.
    +  +

    @@ -121,7 +175,7 @@ Uses of get(Class<T> type) + @@ -129,7 +183,7 @@ Uses of - diff --git a/gson/docs/javadocs/com/google/gson/reflect/package-frame.html b/gson/docs/javadocs/com/google/gson/reflect/package-frame.html index 51931a74..bec95712 100644 --- a/gson/docs/javadocs/com/google/gson/reflect/package-frame.html +++ b/gson/docs/javadocs/com/google/gson/reflect/package-frame.html @@ -2,13 +2,13 @@ - + -com.google.gson.reflect (Gson 2.1-SNAPSHOT API) +com.google.gson.reflect (Gson 2.1 API) - + diff --git a/gson/docs/javadocs/com/google/gson/reflect/package-summary.html b/gson/docs/javadocs/com/google/gson/reflect/package-summary.html index 7942fe8c..7f6b67c9 100644 --- a/gson/docs/javadocs/com/google/gson/reflect/package-summary.html +++ b/gson/docs/javadocs/com/google/gson/reflect/package-summary.html @@ -2,13 +2,13 @@ - + -com.google.gson.reflect (Gson 2.1-SNAPSHOT API) +com.google.gson.reflect (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.reflect (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.reflect (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.reflect (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/reflect/package-tree.html b/gson/docs/javadocs/com/google/gson/reflect/package-tree.html index 1ab4c8f0..aecd29fa 100644 --- a/gson/docs/javadocs/com/google/gson/reflect/package-tree.html +++ b/gson/docs/javadocs/com/google/gson/reflect/package-tree.html @@ -2,13 +2,13 @@ - + -com.google.gson.reflect Class Hierarchy (Gson 2.1-SNAPSHOT API) +com.google.gson.reflect Class Hierarchy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.reflect Class Hierarchy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.reflect Class Hierarchy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.reflect Class Hierarchy (Gson 2.1 API)"; } } @@ -92,7 +92,7 @@ Hierarchy For Package com.google.gson.reflect Class Hierarchy
      -
    • java.lang.Object
      diff --git a/gson/docs/javadocs/com/google/gson/reflect/package-use.html b/gson/docs/javadocs/com/google/gson/reflect/package-use.html index 6500e8c0..fa28593c 100644 --- a/gson/docs/javadocs/com/google/gson/reflect/package-use.html +++ b/gson/docs/javadocs/com/google/gson/reflect/package-use.html @@ -2,13 +2,13 @@ - + -Uses of Package com.google.gson.reflect (Gson 2.1-SNAPSHOT API) +Uses of Package com.google.gson.reflect (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Package com.google.gson.reflect (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Package com.google.gson.reflect (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Package com.google.gson.reflect (Gson 2.1 API)"; } } @@ -91,12 +91,32 @@ function windowTitle() Packages that use com.google.gson.reflect
    + + + +
    TypeToken.get(Class<T> type)
              Gets type literal for the given Class instance.
    static TypeToken<?>TypeToken.get(Type type) +TypeToken.get(Type type)
              Gets type literal for the given Type instance.
    com.google.gsonThis package provides the Gson class to convert Json to Java and + vice-versa. 
    com.google.gson.reflect This package provides utility classes for finding type information for generic types. 
     

    + + + + + + + + +
    +Classes in com.google.gson.reflect used by com.google.gson
    TypeToken + +
    +          Represents a generic type T.
    +  +

    diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonReader.html b/gson/docs/javadocs/com/google/gson/stream/JsonReader.html index 99e2744a..20d28396 100644 --- a/gson/docs/javadocs/com/google/gson/stream/JsonReader.html +++ b/gson/docs/javadocs/com/google/gson/stream/JsonReader.html @@ -2,13 +2,13 @@ - + -JsonReader (Gson 2.1-SNAPSHOT API) +JsonReader (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonReader (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonReader (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonReader (Gson 2.1 API)"; } } @@ -93,15 +93,15 @@ com.google.gson.stream
    Class JsonReader
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.stream.JsonReader
     
    -
    All Implemented Interfaces:
    Closeable
    +
    All Implemented Interfaces:
    Closeable

    -
    public class JsonReader
    extends Object
    implements Closeable
    +
    public class JsonReader
    extends Object
    implements Closeable

    @@ -113,8 +113,8 @@ Reads a JSON (RFC 4627) Within JSON objects, name/value pairs are represented by a single token.

    Parsing JSON

    - To create a recursive descent parser your own JSON streams, first create an - entry point method that creates a JsonReader. + To create a recursive descent parser for your own JSON streams, first create + an entry point method that creates a JsonReader.

    Next, create handler methods for each structure in your JSON text. You'll need a method for each object type and for each array type. @@ -160,7 +160,11 @@ Reads a JSON (RFC 4627) ] This code implements the parser for the above structure:

       public List<Message> readJsonStream(InputStream in) throws IOException {
          JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
    -     return readMessagesArray(reader);
    +     try {
    +       return readMessagesArray(reader);
    +     } finally {
    +       reader.close();
    +     }
        }
     
        public List<Message> readMessagesArray(JsonReader reader) throws IOException {
    @@ -273,7 +277,7 @@ Reads a JSON (RFC 4627)
     Constructor Summary
     
    - @@ -312,7 +316,7 @@ Reads a JSON (RFC 4627) +          Closes this JSON reader and the underlying Reader. + String + String + String - @@ -218,19 +218,19 @@ the order they are declared.  
    JsonReader(Reader in) +JsonReader(Reader in)
              Creates a new instance that reads a JSON-encoded stream from in.
    close()
    -          Closes this JSON reader and the underlying Reader.
    @@ -386,7 +390,7 @@ Reads a JSON (RFC 4627)
    - StringnextName()
    @@ -404,7 +408,7 @@ Reads a JSON (RFC 4627)
    - StringnextString()
    @@ -437,7 +441,7 @@ Reads a JSON (RFC 4627)
    - StringtoString()
    @@ -447,10 +451,10 @@ Reads a JSON (RFC 4627)   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -469,7 +473,7 @@ Reads a JSON (RFC 4627)

    JsonReader

    -public JsonReader(Reader in)
    +public JsonReader(Reader in)
    Creates a new instance that reads a JSON-encoded stream from in.

    @@ -502,7 +506,7 @@ public final void setLenient(boolean lenient) each stream must contain exactly one top-level value.

  • Top-level values of any type. With strict parsing, the top-level value must be an object or an array. -
  • Numbers may be NaNs or infinities. +
  • Numbers may be NaNs or infinities.
  • End of line comments starting with // or # and ending with a newline character.
  • C-style comments starting with /* and ending with @@ -546,7 +550,7 @@ public final boolean isLenient() beginArray
     public void beginArray()
    -                throws IOException
    + throws IOException
    Consumes the next token from the JSON stream and asserts that it is the beginning of a new array. @@ -557,7 +561,7 @@ public void beginArray()
    Throws: -
    IOException
    +
    IOException

  • @@ -566,7 +570,7 @@ public void beginArray() endArray
     public void endArray()
    -              throws IOException
    + throws IOException
    Consumes the next token from the JSON stream and asserts that it is the end of the current array. @@ -577,7 +581,7 @@ public void endArray()
    Throws: -
    IOException
    +
    IOException

    @@ -586,7 +590,7 @@ public void endArray() beginObject
     public void beginObject()
    -                 throws IOException
    + throws IOException
    Consumes the next token from the JSON stream and asserts that it is the beginning of a new object. @@ -597,7 +601,7 @@ public void beginObject()
    Throws: -
    IOException
    +
    IOException

    @@ -606,7 +610,7 @@ public void beginObject() endObject
     public void endObject()
    -               throws IOException
    + throws IOException
    Consumes the next token from the JSON stream and asserts that it is the end of the current array. @@ -617,7 +621,7 @@ public void endObject()
    Throws: -
    IOException
    +
    IOException

    @@ -626,7 +630,7 @@ public void endObject() hasNext
     public boolean hasNext()
    -                throws IOException
    + throws IOException
    Returns true if the current array or object has another element.

    @@ -636,7 +640,7 @@ public boolean hasNext()

    Throws: -
    IOException
    +
    IOException

    @@ -645,7 +649,7 @@ public boolean hasNext() peek
     public JsonToken peek()
    -               throws IOException
    + throws IOException
    Returns the type of the next token without consuming it.

    @@ -655,7 +659,7 @@ public IOException

    +
    IOException

    @@ -663,8 +667,8 @@ public

    nextName

    -public String nextName()
    -                throws IOException
    +public String nextName() + throws IOException
    Returns the next token, a property name, and consumes it. @@ -675,7 +679,7 @@ public IOException - if the next token in the stream is not a property +
    IOException - if the next token in the stream is not a property name.
    @@ -684,8 +688,8 @@ public

    nextString

    -public String nextString()
    -                  throws IOException
    +public String nextString() + throws IOException
    Returns the string value of the next token, consuming it. If the next token is a number, this method will return its @@ -697,9 +701,9 @@ public IllegalStateException - if the next token is not a string or if +
    IllegalStateException - if the next token is not a string or if this reader is closed. -
    IOException
    +
    IOException

    @@ -708,7 +712,7 @@ public IOException + throws IOException
    Returns the boolean value of the next token, consuming it. @@ -719,9 +723,9 @@ public boolean nextBoolean()
    Throws: -
    IllegalStateException - if the next token is not a boolean or if +
    IllegalStateException - if the next token is not a boolean or if this reader is closed. -
    IOException
    +
    IOException

    @@ -730,7 +734,7 @@ public boolean nextBoolean() nextNull
     public void nextNull()
    -              throws IOException
    + throws IOException
    Consumes the next token from the JSON stream and asserts that it is a literal null. @@ -741,9 +745,9 @@ public void nextNull()
    Throws: -
    IllegalStateException - if the next token is not null or if this +
    IllegalStateException - if the next token is not null or if this reader is closed. -
    IOException
    +
    IOException

    @@ -752,11 +756,11 @@ public void nextNull() nextDouble
     public double nextDouble()
    -                  throws IOException
    + throws IOException
    Returns the double value of the next token, consuming it. If the next token is a string, this method will attempt to - parse it as a double. + parse it as a double using Double.parseDouble(String).

    @@ -764,10 +768,10 @@ public double nextDouble()
    Throws: -
    IllegalStateException - if the next token is not a literal value. -
    NumberFormatException - if the next literal value cannot be parsed +
    IllegalStateException - if the next token is not a literal value. +
    NumberFormatException - if the next literal value cannot be parsed as a double, or is non-finite. -
    IOException
    +
    IOException

    @@ -776,7 +780,7 @@ public double nextDouble() nextLong
     public long nextLong()
    -              throws IOException
    + throws IOException
    Returns the long value of the next token, consuming it. If the next token is a string, this method will attempt to @@ -789,10 +793,10 @@ public long nextLong()
    Throws: -
    IllegalStateException - if the next token is not a literal value. -
    NumberFormatException - if the next literal value cannot be parsed +
    IllegalStateException - if the next token is not a literal value. +
    NumberFormatException - if the next literal value cannot be parsed as a number, or exactly represented as a long. -
    IOException
    +
    IOException

    @@ -801,7 +805,7 @@ public long nextLong() nextInt
     public int nextInt()
    -            throws IOException
    + throws IOException
    Returns the int value of the next token, consuming it. If the next token is a string, this method will attempt to @@ -814,10 +818,10 @@ public int nextInt()
    Throws: -
    IllegalStateException - if the next token is not a literal value. -
    NumberFormatException - if the next literal value cannot be parsed +
    IllegalStateException - if the next token is not a literal value. +
    NumberFormatException - if the next literal value cannot be parsed as a number, or exactly represented as an int. -
    IOException
    +
    IOException

    @@ -826,17 +830,17 @@ public int nextInt() close
     public void close()
    -           throws IOException
    + throws IOException
    -
    Closes this JSON reader and the underlying Reader. +
    Closes this JSON reader and the underlying Reader.

    -
    Specified by:
    close in interface Closeable
    +
    Specified by:
    close in interface Closeable
    Throws: -
    IOException
    +
    IOException

    @@ -845,7 +849,7 @@ public void close() skipValue
     public void skipValue()
    -               throws IOException
    + throws IOException
    Skips the next value recursively. If it is an object or array, all nested elements are skipped. This method is intended for use when the JSON token @@ -857,7 +861,7 @@ public void skipValue()
    Throws: -
    IOException
    +
    IOException

    @@ -865,10 +869,10 @@ public void skipValue()

    toString

    -public String toString()
    +public String toString()
    -
    Overrides:
    toString in class Object
    +
    Overrides:
    toString in class Object
    diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonToken.html b/gson/docs/javadocs/com/google/gson/stream/JsonToken.html index 9cc780a2..455b16bb 100644 --- a/gson/docs/javadocs/com/google/gson/stream/JsonToken.html +++ b/gson/docs/javadocs/com/google/gson/stream/JsonToken.html @@ -2,13 +2,13 @@ - + -JsonToken (Gson 2.1-SNAPSHOT API) +JsonToken (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonToken (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonToken (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonToken (Gson 2.1 API)"; } } @@ -93,16 +93,16 @@ com.google.gson.stream
    Enum JsonToken
    -java.lang.Object
    -  extended by java.lang.Enum<JsonToken>
    +java.lang.Object
    +  extended by java.lang.Enum<JsonToken>
           extended by com.google.gson.stream.JsonToken
     
    -
    All Implemented Interfaces:
    Serializable, Comparable<JsonToken>
    +
    All Implemented Interfaces:
    Serializable, Comparable<JsonToken>

    -
    public enum JsonToken
    extends Enum<JsonToken>
    +
    public enum JsonToken
    extends Enum<JsonToken>

    @@ -200,7 +200,7 @@ A structure, name or value type in a JSON-encoded string.

    static JsonTokenvalueOf(String name) +valueOf(String name)
              Returns the enum constant of this type with the specified name.
    - + - +
    Methods inherited from class java.lang.EnumMethods inherited from class java.lang.Enum
    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcompareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, waitgetClass, notify, notifyAll, wait, wait, wait
      @@ -405,7 +405,7 @@ the order they are declared

    valueOf

    -public static JsonToken valueOf(String name)
    +public static JsonToken valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an @@ -416,9 +416,9 @@ not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws: -
    IllegalArgumentException - if this enum type has no constant +
    IllegalArgumentException - if this enum type has no constant with the specified name -
    NullPointerException - if the argument is null
    +
    NullPointerException - if the argument is null
    diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html b/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html index b1221cc1..d2a0a560 100644 --- a/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html +++ b/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html @@ -2,13 +2,13 @@ - + -JsonWriter (Gson 2.1-SNAPSHOT API) +JsonWriter (Gson 2.1 API) - + @@ -16,7 +16,7 @@ JsonWriter (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JsonWriter (Gson 2.1-SNAPSHOT API)"; + parent.document.title="JsonWriter (Gson 2.1 API)"; } } @@ -93,15 +93,15 @@ com.google.gson.stream
    Class JsonWriter
    -java.lang.Object
    +java.lang.Object
       extended by com.google.gson.stream.JsonWriter
     
    -
    All Implemented Interfaces:
    Closeable
    +
    All Implemented Interfaces:
    Closeable

    -
    public class JsonWriter
    extends Object
    implements Closeable
    +
    public class JsonWriter
    extends Object
    implements Closeable

    @@ -195,7 +195,7 @@ Writes a JSON (RFC 4627)

    Each JsonWriter may be used to write a single JSON stream. Instances of this class are not thread safe. Calls that would result in a - malformed JSON string will fail with an IllegalStateException. + malformed JSON string will fail with an IllegalStateException.

    @@ -218,7 +218,7 @@ Writes a JSON (RFC 4627) Constructor Summary -JsonWriter(Writer out) +JsonWriter(Writer out)
              Creates a new instance that writes a JSON-encoded stream to out. @@ -255,7 +255,7 @@ Writes a JSON (RFC 4627) close()
    -          Flushes and closes this writer and the underlying Writer. +          Flushes and closes this writer and the underlying Writer. @@ -279,7 +279,7 @@ Writes a JSON (RFC 4627) flush()
    -          Ensures all buffered data is written to the underlying Writer +          Ensures all buffered data is written to the underlying Writer and flushes that writer. @@ -310,7 +310,7 @@ Writes a JSON (RFC 4627)  JsonWriter -name(String name) +name(String name)
              Encodes the property name. @@ -335,7 +335,7 @@ Writes a JSON (RFC 4627)  void -setIndent(String indent) +setIndent(String indent)
              Sets the indentation string to be repeated for each level of indentation @@ -384,7 +384,7 @@ Writes a JSON (RFC 4627)  JsonWriter -value(Number value) +value(Number value)
              Encodes value. @@ -392,7 +392,7 @@ Writes a JSON (RFC 4627)  JsonWriter -value(String value) +value(String value)
              Encodes value. @@ -401,10 +401,10 @@ Writes a JSON (RFC 4627)   - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      @@ -423,11 +423,11 @@ Writes a JSON (RFC 4627)

    JsonWriter

    -public JsonWriter(Writer out)
    +public JsonWriter(Writer out)
    Creates a new instance that writes a JSON-encoded stream to out. - For best performance, ensure Writer is buffered; wrapping in - BufferedWriter if necessary. + For best performance, ensure Writer is buffered; wrapping in + BufferedWriter if necessary.

    @@ -444,7 +444,7 @@ public JsonWriter(

    setIndent

    -public final void setIndent(String indent)
    +public final void setIndent(String indent)
    Sets the indentation string to be repeated for each level of indentation in the encoded document. If indent.isEmpty() the encoded document @@ -472,7 +472,7 @@ public final void setLenient(boolean lenient)
    • Top-level values of any type. With strict writing, the top-level value must be an object or an array. -
    • Numbers may be NaNs or infinities. +
    • Numbers may be NaNs or infinities.

    @@ -575,7 +575,7 @@ public final boolean getSerializeNulls() beginArray
     public JsonWriter beginArray()
    -                      throws IOException
    + throws IOException
    Begins encoding a new array. Each call to this method must be paired with a call to endArray(). @@ -587,7 +587,7 @@ public IOException
    +
    IOException

    @@ -596,7 +596,7 @@ public JsonWriter endArray() - throws IOException + throws IOException
    Ends encoding the current array.

    @@ -607,7 +607,7 @@ public IOException

    +
    IOException

    @@ -616,7 +616,7 @@ public JsonWriter beginObject() - throws IOException + throws IOException
    Begins encoding a new object. Each call to this method must be paired with a call to endObject(). @@ -628,7 +628,7 @@ public IOException
    +
    IOException

    @@ -637,7 +637,7 @@ public JsonWriter endObject() - throws IOException + throws IOException
    Ends encoding the current object.

    @@ -648,7 +648,7 @@ public IOException

    +
    IOException

    @@ -656,8 +656,8 @@ public

    name

    -public JsonWriter name(String name)
    -                throws IOException
    +public JsonWriter name(String name) + throws IOException
    Encodes the property name.

    @@ -668,7 +668,7 @@ public IOException

    +
    IOException

    @@ -676,8 +676,8 @@ public

    value

    -public JsonWriter value(String value)
    -                 throws IOException
    +public JsonWriter value(String value) + throws IOException
    Encodes value.

    @@ -688,7 +688,7 @@ public IOException

    +
    IOException

    @@ -697,7 +697,7 @@ public JsonWriter nullValue() - throws IOException + throws IOException
    Encodes null.

    @@ -708,7 +708,7 @@ public IOException

    +
    IOException

    @@ -717,7 +717,7 @@ public JsonWriter value(boolean value) - throws IOException + throws IOException
    Encodes value.

    @@ -728,7 +728,7 @@ public IOException

    +
    IOException

    @@ -737,7 +737,7 @@ public JsonWriter value(double value) - throws IOException + throws IOException
    Encodes value.

    @@ -745,11 +745,11 @@ public NaNs or - infinities. +

    Parameters:
    value - a finite value. May not be NaNs or + infinities.
    Returns:
    this writer.
    Throws: -
    IOException
    +
    IOException

    @@ -758,7 +758,7 @@ public JsonWriter value(long value) - throws IOException + throws IOException
    Encodes value.

    @@ -769,7 +769,7 @@ public IOException

    +
    IOException

    @@ -777,8 +777,8 @@ public

    value

    -public JsonWriter value(Number value)
    -                 throws IOException
    +public JsonWriter value(Number value) + throws IOException
    Encodes value.

    @@ -786,11 +786,11 @@ public NaNs or - infinities. +

    Parameters:
    value - a finite value. May not be NaNs or + infinities.
    Returns:
    this writer.
    Throws: -
    IOException
    +
    IOException

    @@ -799,9 +799,9 @@ public IOException + throws IOException
    -
    Ensures all buffered data is written to the underlying Writer +
    Ensures all buffered data is written to the underlying Writer and flushes that writer.

    @@ -810,7 +810,7 @@ public void flush()
    Throws: -
    IOException
    +
    IOException

    @@ -819,17 +819,17 @@ public void flush() close
     public void close()
    -           throws IOException
    + throws IOException
    -
    Flushes and closes this writer and the underlying Writer. +
    Flushes and closes this writer and the underlying Writer.

    -
    Specified by:
    close in interface Closeable
    +
    Specified by:
    close in interface Closeable
    Throws: -
    IOException - if the JSON document is incomplete.
    +
    IOException - if the JSON document is incomplete.
    diff --git a/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html b/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html index 2490e342..a3afb171 100644 --- a/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html +++ b/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html @@ -2,13 +2,13 @@ - + -MalformedJsonException (Gson 2.1-SNAPSHOT API) +MalformedJsonException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ MalformedJsonException (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="MalformedJsonException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="MalformedJsonException (Gson 2.1 API)"; } } @@ -93,18 +93,18 @@ com.google.gson.stream

    Class MalformedJsonException
    -java.lang.Object
    -  extended by java.lang.Throwable
    -      extended by java.lang.Exception
    -          extended by java.io.IOException
    +java.lang.Object
    +  extended by java.lang.Throwable
    +      extended by java.lang.Exception
    +          extended by java.io.IOException
                   extended by com.google.gson.stream.MalformedJsonException
     
    -
    All Implemented Interfaces:
    Serializable
    +
    All Implemented Interfaces:
    Serializable

    -
    public final class MalformedJsonException
    extends IOException
    +
    public final class MalformedJsonException
    extends IOException

    @@ -128,20 +128,20 @@ Thrown when a reader encounters malformed JSON. Some syntax errors can be Constructor Summary -MalformedJsonException(String msg) +MalformedJsonException(String msg)
                -MalformedJsonException(String msg, - Throwable throwable) +MalformedJsonException(String msg, + Throwable throwable)
                -MalformedJsonException(Throwable throwable) +MalformedJsonException(Throwable throwable)
                @@ -160,19 +160,19 @@ Thrown when a reader encounters malformed JSON. Some syntax errors can be   - + - +
    Methods inherited from class java.lang.ThrowableMethods inherited from class java.lang.Throwable
    fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringfillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      - + - +
    Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      @@ -191,7 +191,7 @@ Thrown when a reader encounters malformed JSON. Some syntax errors can be

    MalformedJsonException

    -public MalformedJsonException(String msg)
    +public MalformedJsonException(String msg)

    @@ -199,8 +199,8 @@ public MalformedJsonException(

    MalformedJsonException

    -public MalformedJsonException(String msg,
    -                              Throwable throwable)
    +public MalformedJsonException(String msg, + Throwable throwable)

    @@ -208,7 +208,7 @@ public MalformedJsonException(

    MalformedJsonException

    -public MalformedJsonException(Throwable throwable)
    +public MalformedJsonException(Throwable throwable)
    diff --git a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonReader.html b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonReader.html index 991ec345..31dfaf61 100644 --- a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonReader.html +++ b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonReader.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.stream.JsonReader (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.stream.JsonReader (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.stream.JsonReader (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.stream.JsonReader (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.stream.JsonReader (Gson 2.1 API)"; } } @@ -123,7 +123,7 @@ Uses of fromJson(JsonReader reader, - Type typeOfT) + Type typeOfT)
              Reads the next JSON value from reader and convert it to an object @@ -137,6 +137,15 @@ Uses of + +abstract  T +TypeAdapter.read(JsonReader in) + +
    +          Reads one JSON value (an array, object, string, number, boolean or null) + and converts it to a Java object. +  

    diff --git a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonToken.html b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonToken.html index 1464dce5..a185db1a 100644 --- a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonToken.html +++ b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonToken.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.stream.JsonToken (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.stream.JsonToken (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.stream.JsonToken (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.stream.JsonToken (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.stream.JsonToken (Gson 2.1 API)"; } } @@ -122,7 +122,7 @@ Uses of static JsonToken -JsonToken.valueOf(String name) +JsonToken.valueOf(String name)
              Returns the enum constant of this type with the specified name. diff --git a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonWriter.html b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonWriter.html index 626cb09c..ef6510f0 100644 --- a/gson/docs/javadocs/com/google/gson/stream/class-use/JsonWriter.html +++ b/gson/docs/javadocs/com/google/gson/stream/class-use/JsonWriter.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.stream.JsonWriter (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.stream.JsonWriter (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.stream.JsonWriter (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.stream.JsonWriter (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.stream.JsonWriter (Gson 2.1 API)"; } } @@ -128,14 +128,24 @@ Uses of  void -Gson.toJson(Object src, - Type typeOfSrc, +Gson.toJson(Object src, + Type typeOfSrc, JsonWriter writer)
              Writes the JSON representation of src of type typeOfSrc to writer. + + +abstract  void +TypeAdapter.write(JsonWriter out, + T value) + +
    +          Writes one JSON value (an array, object, string, number, boolean or null) + for value. +  

    @@ -188,7 +198,7 @@ Uses of  JsonWriter -JsonWriter.name(String name) +JsonWriter.name(String name)
              Encodes the property name. @@ -228,7 +238,7 @@ Uses of  JsonWriter -JsonWriter.value(Number value) +JsonWriter.value(Number value)
              Encodes value. @@ -236,7 +246,7 @@ Uses of  JsonWriter -JsonWriter.value(String value) +JsonWriter.value(String value)
              Encodes value. diff --git a/gson/docs/javadocs/com/google/gson/stream/class-use/MalformedJsonException.html b/gson/docs/javadocs/com/google/gson/stream/class-use/MalformedJsonException.html index f5a7dbdf..7abd3dec 100644 --- a/gson/docs/javadocs/com/google/gson/stream/class-use/MalformedJsonException.html +++ b/gson/docs/javadocs/com/google/gson/stream/class-use/MalformedJsonException.html @@ -2,13 +2,13 @@ - + -Uses of Class com.google.gson.stream.MalformedJsonException (Gson 2.1-SNAPSHOT API) +Uses of Class com.google.gson.stream.MalformedJsonException (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Class com.google.gson.stream.MalformedJsonException (Gson 2.1-SNAPSHOT A function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class com.google.gson.stream.MalformedJsonException (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Class com.google.gson.stream.MalformedJsonException (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/stream/package-frame.html b/gson/docs/javadocs/com/google/gson/stream/package-frame.html index 49ae492a..6cc427fa 100644 --- a/gson/docs/javadocs/com/google/gson/stream/package-frame.html +++ b/gson/docs/javadocs/com/google/gson/stream/package-frame.html @@ -2,13 +2,13 @@ - + -com.google.gson.stream (Gson 2.1-SNAPSHOT API) +com.google.gson.stream (Gson 2.1 API) - + diff --git a/gson/docs/javadocs/com/google/gson/stream/package-summary.html b/gson/docs/javadocs/com/google/gson/stream/package-summary.html index 1cbbce4d..26533b75 100644 --- a/gson/docs/javadocs/com/google/gson/stream/package-summary.html +++ b/gson/docs/javadocs/com/google/gson/stream/package-summary.html @@ -2,13 +2,13 @@ - + -com.google.gson.stream (Gson 2.1-SNAPSHOT API) +com.google.gson.stream (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.stream (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.stream (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.stream (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/com/google/gson/stream/package-tree.html b/gson/docs/javadocs/com/google/gson/stream/package-tree.html index 0fec2850..7f6b3ef4 100644 --- a/gson/docs/javadocs/com/google/gson/stream/package-tree.html +++ b/gson/docs/javadocs/com/google/gson/stream/package-tree.html @@ -2,13 +2,13 @@ - + -com.google.gson.stream Class Hierarchy (Gson 2.1-SNAPSHOT API) +com.google.gson.stream Class Hierarchy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ com.google.gson.stream Class Hierarchy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="com.google.gson.stream Class Hierarchy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="com.google.gson.stream Class Hierarchy (Gson 2.1 API)"; } } @@ -92,13 +92,13 @@ Hierarchy For Package com.google.gson.stream Class Hierarchy

      -
    • java.lang.Object
        -
      • com.google.gson.stream.JsonReader (implements java.io.Closeable) -
      • com.google.gson.stream.JsonWriter (implements java.io.Closeable) -
      • java.lang.Throwable (implements java.io.Serializable) +
      • java.lang.Object
          +
        • com.google.gson.stream.JsonReader (implements java.io.Closeable) +
        • com.google.gson.stream.JsonWriter (implements java.io.Closeable) +
        • java.lang.Throwable (implements java.io.Serializable)
            -
          • java.lang.Exception
              -
            • java.io.IOException @@ -108,8 +108,8 @@ Class Hierarchy Enum Hierarchy
                -
              • java.lang.Object
                  -
                • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) +
                • java.lang.Object diff --git a/gson/docs/javadocs/com/google/gson/stream/package-use.html b/gson/docs/javadocs/com/google/gson/stream/package-use.html index 2ea0e373..d7b84dc5 100644 --- a/gson/docs/javadocs/com/google/gson/stream/package-use.html +++ b/gson/docs/javadocs/com/google/gson/stream/package-use.html @@ -2,13 +2,13 @@ - + -Uses of Package com.google.gson.stream (Gson 2.1-SNAPSHOT API) +Uses of Package com.google.gson.stream (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Uses of Package com.google.gson.stream (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Package com.google.gson.stream (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Uses of Package com.google.gson.stream (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/constant-values.html b/gson/docs/javadocs/constant-values.html index 552418fd..24a732b8 100644 --- a/gson/docs/javadocs/constant-values.html +++ b/gson/docs/javadocs/constant-values.html @@ -2,13 +2,13 @@ - + -Constant Field Values (Gson 2.1-SNAPSHOT API) +Constant Field Values (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Constant Field Values (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Constant Field Values (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Constant Field Values (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/deprecated-list.html b/gson/docs/javadocs/deprecated-list.html index 7af632ff..183a3077 100644 --- a/gson/docs/javadocs/deprecated-list.html +++ b/gson/docs/javadocs/deprecated-list.html @@ -2,13 +2,13 @@ - + -Deprecated List (Gson 2.1-SNAPSHOT API) +Deprecated List (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Deprecated List (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Deprecated List (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Deprecated List (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/help-doc.html b/gson/docs/javadocs/help-doc.html index 6895ed2c..6afc3d54 100644 --- a/gson/docs/javadocs/help-doc.html +++ b/gson/docs/javadocs/help-doc.html @@ -2,13 +2,13 @@ - + -API Help (Gson 2.1-SNAPSHOT API) +API Help (Gson 2.1 API) - + @@ -16,7 +16,7 @@ API Help (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="API Help (Gson 2.1-SNAPSHOT API)"; + parent.document.title="API Help (Gson 2.1 API)"; } } diff --git a/gson/docs/javadocs/index-all.html b/gson/docs/javadocs/index-all.html index 84addd21..19f92b9f 100644 --- a/gson/docs/javadocs/index-all.html +++ b/gson/docs/javadocs/index-all.html @@ -2,13 +2,13 @@ - + -Index (Gson 2.1-SNAPSHOT API) +Index (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Index (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Index (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Index (Gson 2.1 API)"; } } @@ -79,7 +79,7 @@ function windowTitle() -A B C D E F G H I J L M N P R S T U V
                  +A B C D E F G H I J L M N P R S T U V W

                  A

                  @@ -136,14 +136,18 @@ Method in class com.google.gson.stream.close() - Method in class com.google.gson.stream.JsonReader -
                  Closes this JSON reader and the underlying Reader. +
                  Closes this JSON reader and the underlying Reader.
                  close() - Method in class com.google.gson.stream.JsonWriter -
                  Flushes and closes this writer and the underlying Writer. +
                  Flushes and closes this writer and the underlying Writer.
                  com.google.gson - package com.google.gson
                  This package provides the Gson class to convert Json to Java and vice-versa.
                  com.google.gson.annotations - package com.google.gson.annotations
                  This package provides annotations that can be used with Gson.
                  com.google.gson.reflect - package com.google.gson.reflect
                  This package provides utility classes for finding type information for generic types.
                  com.google.gson.stream - package com.google.gson.stream
                   
                  create() - Method in class com.google.gson.GsonBuilder
                  Creates a Gson instance based on the current configuration. +
                  create(Gson, TypeToken<T>) - +Method in interface com.google.gson.TypeAdapterFactory +
                  Returns a type adapter for type, or null if this factory doesn't + support type.
                  createInstance(Type) - Method in interface com.google.gson.InstanceCreator
                  Gson invokes this call-back method during deserialization to create an instance of the @@ -221,9 +225,12 @@ Method in class com.google.gson.

                  F

                  -
                  FieldAttributes - Class in com.google.gson
                  A data object that stores attributes of a field.
                  FieldNamingPolicy - Enum in com.google.gson
                  An enumeration that defines a few standard naming conventions for JSON field names.
                  FieldNamingStrategy - Interface in com.google.gson
                  A mechanism for providing custom field naming in Gson.
                  flush() - +
                  FieldAttributes - Class in com.google.gson
                  A data object that stores attributes of a field.
                  FieldAttributes(Field) - +Constructor for class com.google.gson.FieldAttributes +
                  Constructs a Field Attributes object from the f. +
                  FieldNamingPolicy - Enum in com.google.gson
                  An enumeration that defines a few standard naming conventions for JSON field names.
                  FieldNamingStrategy - Interface in com.google.gson
                  A mechanism for providing custom field naming in Gson.
                  flush() - Method in class com.google.gson.stream.JsonWriter -
                  Ensures all buffered data is written to the underlying Writer +
                  Ensures all buffered data is written to the underlying Writer and flushes that writer.
                  fromJson(String, Class<T>) - Method in class com.google.gson.Gson @@ -272,6 +279,12 @@ Static method in class com.google.gson.reflect.get(Class<T>) - Static method in class com.google.gson.reflect.TypeToken
                  Gets type literal for the given Class instance. +
                  getAdapter(TypeToken<T>) - +Method in class com.google.gson.Gson +
                  Returns the type adapter for type. +
                  getAdapter(Class<T>) - +Method in class com.google.gson.Gson +
                  Returns the type adapter for type.
                  getAnnotation(Class<T>) - Method in class com.google.gson.FieldAttributes
                  Return the T annotation object from this field if it exist; otherwise returns @@ -281,22 +294,22 @@ Method in class com.google.gson.Return the annotations that are present on this field.
                  getAsBigDecimal() - Method in class com.google.gson.JsonArray -
                  convenience method to get this array as a BigDecimal if it contains a single element. +
                  convenience method to get this array as a BigDecimal if it contains a single element.
                  getAsBigDecimal() - Method in class com.google.gson.JsonElement -
                  convenience method to get this element as a BigDecimal. +
                  convenience method to get this element as a BigDecimal.
                  getAsBigDecimal() - Method in class com.google.gson.JsonPrimitive -
                  convenience method to get this element as a BigDecimal. +
                  convenience method to get this element as a BigDecimal.
                  getAsBigInteger() - Method in class com.google.gson.JsonArray -
                  convenience method to get this array as a BigInteger if it contains a single element. +
                  convenience method to get this array as a BigInteger if it contains a single element.
                  getAsBigInteger() - Method in class com.google.gson.JsonElement -
                  convenience method to get this element as a BigInteger. +
                  convenience method to get this element as a BigInteger.
                  getAsBigInteger() - Method in class com.google.gson.JsonPrimitive -
                  convenience method to get this element as a BigInteger. +
                  convenience method to get this element as a BigInteger.
                  getAsBoolean() - Method in class com.google.gson.JsonArray
                  convenience method to get this array as a boolean if it contains a single element. @@ -383,10 +396,10 @@ Method in class com.google.gson.convenience method to get this element as a primitive long.
                  getAsNumber() - Method in class com.google.gson.JsonArray -
                  convenience method to get this array as a Number if it contains a single element. +
                  convenience method to get this array as a Number if it contains a single element.
                  getAsNumber() - Method in class com.google.gson.JsonElement -
                  convenience method to get this element as a Number. +
                  convenience method to get this element as a Number.
                  getAsNumber() - Method in class com.google.gson.JsonPrimitive
                  convenience method to get this element as a Number. @@ -401,7 +414,7 @@ Method in class com.google.gson.convenience method to get this element as a primitive short.
                  getAsString() - Method in class com.google.gson.JsonArray -
                  convenience method to get this array as a String if it contains a single element. +
                  convenience method to get this array as a String if it contains a single element.
                  getAsString() - Method in class com.google.gson.JsonElement
                  convenience method to get this element as a string value. @@ -578,7 +591,7 @@ Constructor for class com.google.gson.JsonPrimitive(Number) - Constructor for class com.google.gson.JsonPrimitive -
                  Create a primitive containing a Number. +
                  Create a primitive containing a Number.
                  JsonPrimitive(String) - Constructor for class com.google.gson.JsonPrimitive
                  Create a primitive containing a String value. @@ -669,6 +682,9 @@ Method in class com.google.gson.stream.JsonReader
                  Returns the string value of the next token, consuming it. +
                  nullSafe() - +Method in class com.google.gson.TypeAdapter +
                  This wrapper method is used to make a type adapter null tolerant.
                  nullValue() - Method in class com.google.gson.stream.JsonWriter
                  Encodes null. @@ -694,9 +710,16 @@ Method in class com.google.gson.stream.

                  R

                  +
                  read(JsonReader) - +Method in class com.google.gson.TypeAdapter +
                  Reads one JSON value (an array, object, string, number, boolean or null) + and converts it to a Java object.
                  registerTypeAdapter(Type, Object) - Method in class com.google.gson.GsonBuilder
                  Configures Gson for custom serialization or deserialization. +
                  registerTypeAdapterFactory(TypeAdapterFactory) - +Method in class com.google.gson.GsonBuilder +
                  Register a factory for type adapters.
                  registerTypeHierarchyAdapter(Class<?>, Object) - Method in class com.google.gson.GsonBuilder
                  Configures Gson for custom serialization or deserialization for an inheritance type hierarchy. @@ -705,7 +728,7 @@ Method in class com.google.gson.Removes the property from this JsonObject.
                  remove() - Method in class com.google.gson.JsonStreamParser -
                  This optional Iterator method is not relevant for stream parsing and hence is not +
                  This optional Iterator method is not relevant for stream parsing and hence is not implemented.

                  @@ -848,7 +871,10 @@ Method in class com.google.gson.stream.translateName(Field) - Method in interface com.google.gson.FieldNamingStrategy
                  Translates the field name into its JSON field name representation. -
                  TypeToken<T> - Class in com.google.gson.reflect
                  Represents a generic type T.
                  +
                  TypeAdapter<T> - Class in com.google.gson
                  Converts Java objects to and from JSON.
                  TypeAdapter() - +Constructor for class com.google.gson.TypeAdapter +
                    +
                  TypeAdapterFactory - Interface in com.google.gson
                  Creates type adapters for set of related types.
                  TypeToken<T> - Class in com.google.gson.reflect
                  Represents a generic type T.

                  U

                  @@ -896,7 +922,16 @@ Static method in enum com.google.gson.stream.A B C D E F G H I J L M N P R S T U V +

                  +W

                  +
                  +
                  write(JsonWriter, T) - +Method in class com.google.gson.TypeAdapter +
                  Writes one JSON value (an array, object, string, number, boolean or null) + for value. +
                  +
                  +A B C D E F G H I J L M N P R S T U V W diff --git a/gson/docs/javadocs/index.html b/gson/docs/javadocs/index.html index fef42615..360b992b 100644 --- a/gson/docs/javadocs/index.html +++ b/gson/docs/javadocs/index.html @@ -2,10 +2,10 @@ - + -Gson 2.1-SNAPSHOT API +Gson 2.1 API @@ -82,7 +82,7 @@ function windowTitle()

                  -Gson 2.1-SNAPSHOT API +Gson 2.1 API

                  diff --git a/gson/docs/javadocs/overview-tree.html b/gson/docs/javadocs/overview-tree.html index dd084228..727a00c4 100644 --- a/gson/docs/javadocs/overview-tree.html +++ b/gson/docs/javadocs/overview-tree.html @@ -2,13 +2,13 @@ - + -Class Hierarchy (Gson 2.1-SNAPSHOT API) +Class Hierarchy (Gson 2.1 API) - + @@ -16,7 +16,7 @@ Class Hierarchy (Gson 2.1-SNAPSHOT API) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Class Hierarchy (Gson 2.1-SNAPSHOT API)"; + parent.document.title="Class Hierarchy (Gson 2.1 API)"; } } @@ -91,48 +91,49 @@ Hierarchy For All Packages Class Hierarchy