diff --git a/gson/docs/javadocs/allclasses-frame.html b/gson/docs/javadocs/allclasses-frame.html index 98cf2b2b..c9649bc9 100644 --- a/gson/docs/javadocs/allclasses-frame.html +++ b/gson/docs/javadocs/allclasses-frame.html @@ -2,13 +2,12 @@
- +ExclusionStrategy + | $Gson$Preconditions
+ +$Gson$Types + +ExclusionStrategy Expose diff --git a/gson/docs/javadocs/allclasses-noframe.html b/gson/docs/javadocs/allclasses-noframe.html index 68e08598..cb74e9a3 100644 --- a/gson/docs/javadocs/allclasses-noframe.html +++ b/gson/docs/javadocs/allclasses-noframe.html @@ -2,13 +2,12 @@ - +
values-public static FieldNamingPolicy[] values()+public static final FieldNamingPolicy[] values()
@@ -338,7 +335,7 @@ the order they are declared valueOf-public static FieldNamingPolicy valueOf(String name)+public static FieldNamingPolicy valueOf(String name)
IllegalArgumentException - if this enum type has no constant
+with the specified name
-Copyright © 2008-2010. All Rights Reserved. +Copyright © 2008-2011 Google, Inc.. All Rights Reserved. diff --git a/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html b/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html index c8987d14..0685e86e 100644 --- a/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html +++ b/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html @@ -2,22 +2,20 @@ - + @@ -124,8 +121,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 +144,7 @@ A mechanism for providing custom field naming in Gson. This allows the client c
fromJson(JsonElement json,
- Class<T> classOfT)
+ Class<T> classOfT)
fromJson(JsonElement json,
- Type typeOfT)
+ Type typeOfT)
fromJson(JsonReader reader,
- Type typeOfT)
+ Type typeOfT)
reader
and convert it to an object
@@ -233,8 +230,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)
fromJson(Reader json,
- Type typeOfT)
+fromJson(Reader json,
+ Type typeOfT)
fromJson(String json,
- Class<T> classOfT)
+fromJson(String json,
+ Class<T> classOfT)
fromJson(String json,
- Type typeOfT)
+fromJson(String json,
+ Type typeOfT)
String
String
toJson(JsonElement jsonElement)
void
toJson(JsonElement jsonElement,
- Appendable writer)
+ Appendable writer)
JsonElement
s. String
toJson(Object src)
+ String
toJson(Object src)
void
toJson(Object src,
- Appendable writer)
+toJson(Object src,
+ Appendable writer)
String
toJson(Object src,
- Type typeOfSrc)
+ String
toJson(Object src,
+ Type typeOfSrc)
void
toJson(Object src,
- Type typeOfSrc,
- Appendable writer)
+toJson(Object src,
+ Type typeOfSrc,
+ Appendable writer)
void
toJson(Object src,
- Type typeOfSrc,
+toJson(Object src,
+ Type typeOfSrc,
JsonWriter writer)
@@ -367,7 +364,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 +373,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 +382,7 @@ This is the main class for using Gson. Gson is typically used by first construct
- String
+ String
toString()
@@ -395,10 +392,10 @@ This is the main class for using Gson. Gson is typically used by first construct
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -429,12 +426,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)
.
@@ -467,11 +464,11 @@ public Gson()
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
JsonElement
s. 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 +486,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
JsonElement
s. This method must be used if the
@@ -514,16 +511,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 +532,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 createdtypeOfSrc
- The specific genericized type of src. You can obtain
@@ -558,13 +555,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 +580,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 +607,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 +626,7 @@ public void toJson(
toJson
-public String toJson(JsonElement jsonElement)
+public String toJson(JsonElement jsonElement)
- Converts a tree of
JsonElement
s into its equivalent JSON representation.
@@ -646,7 +643,7 @@ public JsonElement jsonElement,
- Appendable writer)
+ Appendable writer)
throws JsonIOException
- Writes out the equivalent JSON for a tree of
JsonElement
s.
@@ -681,8 +678,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 +688,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 +704,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 +731,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 +743,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 +760,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 deserializedtypeOfT
- The specific genericized type of src. You can obtain this type by using the
@@ -794,7 +791,7 @@ public <T> T fromJson(JsonReader reader,
- Type typeOfT)
+ Type typeOfT)
throws JsonIOException,
JsonSyntaxException
@@ -815,7 +812,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 +839,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 +866,10 @@ public <T> T fromJson(
toString
-public String toString()
+public String toString()
-- Overrides:
toString
in class Object
+- Overrides:
toString
in class Object
@@ -939,6 +936,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/GsonBuilder.html b/gson/docs/javadocs/com/google/gson/GsonBuilder.html
index e1cd3da5..782ace40 100644
--- a/gson/docs/javadocs/com/google/gson/GsonBuilder.html
+++ b/gson/docs/javadocs/com/google/gson/GsonBuilder.html
@@ -2,22 +2,20 @@
-
+
-GsonBuilder (Gson 1.6 API)
+GsonBuilder (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,12 +90,12 @@ com.google.gson
Class GsonBuilder
-java.lang.Object
+java.lang.Object
com.google.gson.GsonBuilder
-public final class GsonBuilder
- extends Object
+public final class GsonBuilder
- extends Object
@@ -113,6 +110,7 @@ Class GsonBuilder
Gson gson = new GsonBuilder()
.registerTypeAdapter(Id.class, new IdTypeAdapter())
+ .enableComplexMapKeySerialization()
.serializeNulls()
.setDateFormat(DateFormat.LONG)
.setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
@@ -121,7 +119,14 @@ Class GsonBuilder
.create();
- NOTE: the order of invocation of configuration methods does not matter.
+ NOTES:
+
+ - the order of invocation of configuration methods does not matter.
+ - 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.
+
+
@@ -160,6 +165,22 @@ Class GsonBuilder
+ GsonBuilder
+addDeserializationExclusionStrategy(ExclusionStrategy strategy)
+
+
+ Configures Gson to apply the passed in exclusion strategy during deserialization.
+
+
+
+ GsonBuilder
+addSerializationExclusionStrategy(ExclusionStrategy strategy)
+
+
+ Configures Gson to apply the passed in exclusion strategy during serialization.
+
+
+
Gson
create()
@@ -185,6 +206,15 @@ Class GsonBuilder
GsonBuilder
+enableComplexMapKeySerialization()
+
+
+ Enabling this feature will only change the serialized form if the map key is
+ a complex type (i.e.
+
+
+
+ GsonBuilder
excludeFieldsWithModifiers(int... modifiers)
@@ -211,8 +241,8 @@ Class GsonBuilder
GsonBuilder
-registerTypeAdapter(Type type,
- Object typeAdapter)
+registerTypeAdapter(Type type,
+ Object typeAdapter)
Configures Gson for custom serialization or deserialization.
@@ -220,6 +250,15 @@ Class GsonBuilder
GsonBuilder
+registerTypeHierarchyAdapter(Class<?> baseType,
+ Object typeAdapter)
+
+
+ Configures Gson for custom serialization or deserialization for an inheritance type hierarchy.
+
+
+
+ GsonBuilder
serializeNulls()
@@ -254,7 +293,7 @@ Class GsonBuilder
GsonBuilder
-setDateFormat(String pattern)
+setDateFormat(String pattern)
Configures Gson to serialize Date
objects according to the pattern provided.
@@ -315,10 +354,10 @@ Class GsonBuilder
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -382,9 +421,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
@@ -441,6 +480,87 @@ public
+enableComplexMapKeySerialization
+
+public GsonBuilder enableComplexMapKeySerialization()
+
+- Enabling this feature will only change the serialized form if the map key is
+ a complex type (i.e. non-primitive) in its serialized JSON
+ form. The default implementation of map serialization uses
toString()
+ on the key; however, when this is called then one of the following cases
+ apply:
+
+ Maps as JSON objects
+ For this case, assume that a type adapter is registered to serialize and
+ deserialize some Point
class, which contains an x and y coordinate,
+ to/from the JSON Primitive string value "(x,y)"
. The Java map would
+ then be serialized as a JsonObject
.
+
+ Below is an example:
+
Gson gson = new GsonBuilder()
+ .register(Point.class, new MyPointTypeAdapter())
+ .enableComplexMapKeySerialization()
+ .create();
+
+ Map<Point, String> original = new LinkedHashMap<Point, String>();
+ original.put(new Point(5, 6), "a");
+ original.put(new Point(8, 8), "b");
+ System.out.println(gson.toJson(original, type));
+
+ The above code prints this JSON object: {
+ "(5,6)": "a",
+ "(8,8)": "b"
+ }
+
+
+ Maps as JSON arrays
+ For this case, assume that a type adapter was NOT registered for some
+ Point
class, but rather the default Gson serialization is applied.
+ In this case, some new Point(2,3)
would serialize as {"x":2,"y":5}
.
+
+ Given the assumption above, a Map<Point, String>
will be
+ serialize as an array of arrays (can be viewed as an entry set of pairs).
+
+
Below is an example of serializing complex types as JSON arrays:
+
Gson gson = new GsonBuilder()
+ .enableComplexMapKeySerialization()
+ .create();
+
+ Map<Point, String> original = new LinkedHashMap<Point, String>();
+ original.put(new Point(5, 6), "a");
+ original.put(new Point(8, 8), "b");
+ System.out.println(gson.toJson(original, type));
+
+
+ The JSON output would look as follows:
+ [
+ [
+ {
+ "x": 5,
+ "y": 6
+ },
+ "a"
+ ],
+ [
+ {
+ "x": 8,
+ "y": 8
+ },
+ "b"
+ ]
+ ]
+
+
+
+
+- Returns:
- a reference to this
GsonBuilder
object to fulfill the "Builder" pattern - Since:
+ - 1.7
+
+
+
+
+
disableInnerClassSerialization
@@ -526,6 +646,48 @@ public
+addSerializationExclusionStrategy
+
+public GsonBuilder addSerializationExclusionStrategy(ExclusionStrategy strategy)
+
+- Configures Gson to apply the passed in exclusion strategy during serialization.
+ If this method is invoked numerous times with different exclusion strategy objects
+ then the exclusion strategies that were added will be applied as a disjunction rule.
+ This means that if one of the added exclusion strategies suggests that a field (or
+ class) should be skipped then that field (or object) is skipped during its
+ serialization.
+
+
+- Parameters:
strategy
- an exclusion strategy to apply during serialization.
+- Returns:
- a reference to this
GsonBuilder
object to fulfill the "Builder" pattern - Since:
+ - 1.7
+
+
+
+
+
+
+addDeserializationExclusionStrategy
+
+public GsonBuilder addDeserializationExclusionStrategy(ExclusionStrategy strategy)
+
+- Configures Gson to apply the passed in exclusion strategy during deserialization.
+ If this method is invoked numerous times with different exclusion strategy objects
+ then the exclusion strategies that were added will be applied as a disjunction rule.
+ This means that if one of the added exclusion strategies suggests that a field (or
+ class) should be skipped then that field (or object) is skipped during its
+ deserialization.
+
+
+- Parameters:
strategy
- an exclusion strategy to apply during deserialization.
+- Returns:
- a reference to this
GsonBuilder
object to fulfill the "Builder" pattern - Since:
+ - 1.7
+
+
+
+
+
setPrettyPrinting
@@ -561,14 +723,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
.
+
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.
@@ -590,7 +754,7 @@ public DateFormat
for more
+ DateFormat
class. See the documentation in DateFormat
for more
information on the valid style constants.
@@ -614,7 +778,7 @@ public DateFormat
for more
+ DateFormat
class. See the documentation in DateFormat
for more
information on the valid style constants.
@@ -630,8 +794,8 @@ 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
@@ -648,6 +812,32 @@ public
+registerTypeHierarchyAdapter
+
+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.
+
+
+- Parameters:
baseType
- the class definition for the type adapter being registered for the base class
+ or interfacetypeAdapter
- This object must implement at least one of the InstanceCreator
,
+ JsonSerializer
, and a JsonDeserializer
interfaces.
+- Returns:
- a reference to this
GsonBuilder
object to fulfill the "Builder" pattern - Since:
+ - 1.7
+
+
+
+
+
serializeSpecialFloatingPointValues
@@ -662,10 +852,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.
@@ -752,6 +942,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/InstanceCreator.html b/gson/docs/javadocs/com/google/gson/InstanceCreator.html
index d94fed47..f054e2a0 100644
--- a/gson/docs/javadocs/com/google/gson/InstanceCreator.html
+++ b/gson/docs/javadocs/com/google/gson/InstanceCreator.html
@@ -2,22 +2,20 @@
-
+
-InstanceCreator (Gson 1.6 API)
+InstanceCreator (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -173,7 +170,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 +193,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 +202,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.
@@ -270,6 +267,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonArray.html b/gson/docs/javadocs/com/google/gson/JsonArray.html
index 477ae963..3088d024 100644
--- a/gson/docs/javadocs/com/google/gson/JsonArray.html
+++ b/gson/docs/javadocs/com/google/gson/JsonArray.html
@@ -2,22 +2,20 @@
-
+
-JsonArray (Gson 1.6 API)
+JsonArray (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,16 +90,16 @@ com.google.gson
Class JsonArray
-java.lang.Object
+java.lang.Object
com.google.gson.JsonElement
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>
@@ -162,6 +159,14 @@ A class representing an array type in Json. An array is a list of
+ boolean
+equals(Object o)
+
+
+
+
+
+
JsonElement
get(int i)
@@ -170,19 +175,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.
@@ -242,11 +247,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.
@@ -258,15 +263,23 @@ 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.
- Iterator<JsonElement>
+ int
+hashCode()
+
+
+
+
+
+
+ Iterator<JsonElement>
iterator()
@@ -293,10 +306,10 @@ A class representing an array type in Json. An array is a list of
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -383,13 +396,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>
@@ -412,7 +425,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.
@@ -421,9 +434,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
@@ -432,9 +445,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.
@@ -442,9 +455,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
@@ -453,9 +466,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.
@@ -474,9 +487,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.
@@ -484,20 +497,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
@@ -507,20 +520,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
@@ -541,9 +554,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.
@@ -562,9 +575,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.
@@ -583,9 +596,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.
@@ -640,9 +653,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.
@@ -661,9 +674,37 @@ 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.
+
+
+
+
+
+equals
+
+public boolean equals(Object o)
+
+
+- Overrides:
equals
in class Object
+
+
+
+
+
+
+
+
+hashCode
+
+public int hashCode()
+
+
+- Overrides:
hashCode
in class Object
+
+
+
@@ -727,6 +768,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html b/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html
index 935f0321..1124a722 100644
--- a/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html
+++ b/gson/docs/javadocs/com/google/gson/JsonDeserializationContext.html
@@ -2,22 +2,20 @@
-
+
-JsonDeserializationContext (Gson 1.6 API)
+JsonDeserializationContext (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -131,7 +128,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 +151,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
@@ -230,6 +227,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonDeserializer.html b/gson/docs/javadocs/com/google/gson/JsonDeserializer.html
index 83723386..9657e20d 100644
--- a/gson/docs/javadocs/com/google/gson/JsonDeserializer.html
+++ b/gson/docs/javadocs/com/google/gson/JsonDeserializer.html
@@ -2,22 +2,20 @@
-
+
-JsonDeserializer (Gson 1.6 API)
+JsonDeserializer (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -165,7 +162,7 @@ Interface JsonDeserializer<T>
T
deserialize(JsonElement json,
- Type typeOfT,
+ Type typeOfT,
JsonDeserializationContext context)
@@ -190,7 +187,7 @@ Interface JsonDeserializer<T>
deserialize
T deserialize(JsonElement json,
- Type typeOfT,
+ Type typeOfT,
JsonDeserializationContext context)
throws JsonParseException
@@ -270,6 +267,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonElement.html b/gson/docs/javadocs/com/google/gson/JsonElement.html
index 896a9d57..e1387b6d 100644
--- a/gson/docs/javadocs/com/google/gson/JsonElement.html
+++ b/gson/docs/javadocs/com/google/gson/JsonElement.html
@@ -2,22 +2,20 @@
-
+
-JsonElement (Gson 1.6 API)
+JsonElement (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,7 +90,7 @@ com.google.gson
Class JsonElement
-java.lang.Object
+java.lang.Object
com.google.gson.JsonElement
@@ -101,7 +98,7 @@ Class JsonElement
-public abstract class JsonElement
- extends Object
+public abstract class JsonElement
- extends Object
@@ -144,19 +141,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 +245,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 +261,7 @@ A class representing an element of Json. It could either be a
- String
+ String
getAsString()
@@ -304,7 +301,7 @@ A class representing an element of Json. It could either be a
- String
+ String
toString()
@@ -314,10 +311,10 @@ A class representing an element of Json. It could either be a
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -414,7 +411,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 +419,7 @@ public JsonObject
.
- Throws:
-
IllegalStateException
- if the element is of another type.
+IllegalStateException
- if the element is of another type.
@@ -433,7 +430,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 +438,7 @@ public JsonArray
.
- Throws:
-
IllegalStateException
- if the element is of another type.
+IllegalStateException
- if the element is of another type.
@@ -452,7 +449,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 +457,7 @@ public JsonPrimitive
.
- Throws:
-
IllegalStateException
- if the element is of another type.
+IllegalStateException
- if the element is of another type.
@@ -471,7 +468,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 +476,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 +494,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 +505,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 +524,7 @@ public
getAsString
-public String getAsString()
+public String getAsString()
- convenience method to get this element as a string value.
@@ -535,9 +532,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 +551,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 +570,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 +589,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 +608,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 +627,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 +648,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 +661,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 +682,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 +711,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 +722,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
@@ -798,6 +795,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonIOException.html b/gson/docs/javadocs/com/google/gson/JsonIOException.html
index 505aebea..e10f4343 100644
--- a/gson/docs/javadocs/com/google/gson/JsonIOException.html
+++ b/gson/docs/javadocs/com/google/gson/JsonIOException.html
@@ -2,22 +2,20 @@
-
+
-JsonIOException (Gson 1.6 API)
+JsonIOException (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,15 +90,15 @@ com.google.gson
Class JsonIOException
-java.lang.Object
-
java.lang.Throwable
-
java.lang.Exception
-
java.lang.RuntimeException
+java.lang.Object
+
java.lang.Throwable
+
java.lang.Exception
+
java.lang.RuntimeException
com.google.gson.JsonParseException
com.google.gson.JsonIOException
-- All Implemented Interfaces:
- Serializable
+- All Implemented Interfaces:
- Serializable
@@ -131,20 +128,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 +160,19 @@ This exception is raised when Gson was unable to read an input stream
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -194,7 +191,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 +199,8 @@ public JsonIOException(
JsonIOException
-public JsonIOException(String msg,
- Throwable cause)
+public JsonIOException(String msg,
+ Throwable cause)
@@ -211,7 +208,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.
@@ -280,6 +277,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonNull.html b/gson/docs/javadocs/com/google/gson/JsonNull.html
index 3725b1c7..c1cbb744 100644
--- a/gson/docs/javadocs/com/google/gson/JsonNull.html
+++ b/gson/docs/javadocs/com/google/gson/JsonNull.html
@@ -2,22 +2,20 @@
-
+
-JsonNull (Gson 1.6 API)
+JsonNull (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,7 +90,7 @@ com.google.gson
Class JsonNull
-java.lang.Object
+java.lang.Object
com.google.gson.JsonElement
com.google.gson.JsonNull
@@ -144,7 +141,7 @@ A class representing a Json null
value.
boolean
-equals(Object other)
+equals(Object other)
All instances of JsonNull are the same
@@ -170,10 +167,10 @@ A class representing a Json null
value.
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -216,7 +213,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
@@ -227,12 +224,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
@@ -299,6 +296,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonObject.html b/gson/docs/javadocs/com/google/gson/JsonObject.html
index 7b2f62de..93830f32 100644
--- a/gson/docs/javadocs/com/google/gson/JsonObject.html
+++ b/gson/docs/javadocs/com/google/gson/JsonObject.html
@@ -2,22 +2,20 @@
-
+
-JsonObject (Gson 1.6 API)
+JsonObject (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,7 +90,7 @@ com.google.gson
Class JsonObject
-java.lang.Object
+java.lang.Object
com.google.gson.JsonElement
com.google.gson.JsonObject
@@ -144,7 +141,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 +150,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 +159,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 +168,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 +177,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()
@@ -196,8 +193,16 @@ A class representing an object type in Json. An object consists of name-value pa
+ boolean
+equals(Object o)
+
+
+
+
+
+
JsonElement
-get(String memberName)
+get(String memberName)
Returns the member with the specified name.
@@ -205,7 +210,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.
@@ -213,7 +218,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.
@@ -221,7 +226,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.
@@ -229,15 +234,23 @@ 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.
+ int
+hashCode()
+
+
+
+
+
+
JsonElement
-remove(String property)
+remove(String property)
Removes the property
from this JsonObject
.
@@ -255,10 +268,10 @@ A class representing an object type in Json. An object consists of name-value pa
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -296,7 +309,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
@@ -312,7 +325,7 @@ public void add(
remove
-public JsonElement remove(String property)
+public JsonElement remove(String property)
- Removes the
property
from this JsonObject
.
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.
@@ -343,8 +356,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.
@@ -358,8 +371,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.
@@ -373,8 +386,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.
@@ -388,7 +401,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.
@@ -403,7 +416,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.
@@ -417,7 +430,7 @@ public boolean has(
get
-public JsonElement get(String memberName)
+public JsonElement get(String memberName)
- Returns the member with the specified name.
getAsJsonPrimitive
-public JsonPrimitive getAsJsonPrimitive(String memberName)
+public JsonPrimitive getAsJsonPrimitive(String memberName)
- Convenience method to get the specified member as a JsonPrimitive element.
getAsJsonArray
-public JsonArray getAsJsonArray(String memberName)
+public JsonArray getAsJsonArray(String memberName)
- Convenience method to get the specified member as a JsonArray.
getAsJsonObject
-public JsonObject getAsJsonObject(String memberName)
+public JsonObject getAsJsonObject(String memberName)
- Convenience method to get the specified member as a JsonObject.
+equals
+
+public boolean equals(Object o)
+
+
+- Overrides:
equals
in class Object
+
+
+
+
+
+
+
+
+hashCode
+
+public int hashCode()
+
+
+- Overrides:
hashCode
in class Object
+
+
+
+
+
@@ -529,6 +570,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonParseException.html b/gson/docs/javadocs/com/google/gson/JsonParseException.html
index af437579..32056e96 100644
--- a/gson/docs/javadocs/com/google/gson/JsonParseException.html
+++ b/gson/docs/javadocs/com/google/gson/JsonParseException.html
@@ -2,22 +2,20 @@
-
+
-JsonParseException (Gson 1.6 API)
+JsonParseException (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,21 +90,21 @@ com.google.gson
Class JsonParseException
-java.lang.Object
-
java.lang.Throwable
-
java.lang.Exception
-
java.lang.RuntimeException
+java.lang.Object
+
java.lang.Throwable
+
java.lang.Exception
+
java.lang.RuntimeException
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 +112,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 +136,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 +168,19 @@ This exception is raised if there is a serious issue that occurs during parsing
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -202,7 +199,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 +212,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 +225,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.
@@ -297,6 +294,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonParser.html b/gson/docs/javadocs/com/google/gson/JsonParser.html
index 71672fb5..5dea99d0 100644
--- a/gson/docs/javadocs/com/google/gson/JsonParser.html
+++ b/gson/docs/javadocs/com/google/gson/JsonParser.html
@@ -2,22 +2,20 @@
-
+
-JsonParser (Gson 1.6 API)
+JsonParser (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,12 +90,12 @@ com.google.gson
Class JsonParser
-java.lang.Object
+java.lang.Object
com.google.gson.JsonParser
-public final class JsonParser
- extends Object
+public final class JsonParser
- extends Object
@@ -151,7 +148,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 +156,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 +165,10 @@ A parser to parse Json into a parse tree of
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -207,7 +204,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 +224,7 @@ public
parse
-public JsonElement parse(Reader json)
+public JsonElement parse(Reader json)
throws JsonIOException,
JsonSyntaxException
@@ -327,6 +324,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonPrimitive.html b/gson/docs/javadocs/com/google/gson/JsonPrimitive.html
index 9e9e8c4f..bfd3ce95 100644
--- a/gson/docs/javadocs/com/google/gson/JsonPrimitive.html
+++ b/gson/docs/javadocs/com/google/gson/JsonPrimitive.html
@@ -2,22 +2,20 @@
-
+
-JsonPrimitive (Gson 1.6 API)
+JsonPrimitive (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,7 +90,7 @@ com.google.gson
Class JsonPrimitive
-java.lang.Object
+java.lang.Object
com.google.gson.JsonElement
com.google.gson.JsonPrimitive
@@ -126,25 +123,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 +159,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 +238,7 @@ A class representing a Json primitive value. A primitive value
- Number
+ Number
getAsNumber()
@@ -257,7 +254,7 @@ A class representing a Json primitive value. A primitive value
- String
+ String
getAsString()
@@ -308,10 +305,10 @@ A class representing a Json primitive value. A primitive value
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -330,7 +327,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 +339,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 +351,7 @@ public JsonPrimitive(
JsonPrimitive
-public JsonPrimitive(String string)
+public JsonPrimitive(String string)
- Create a primitive containing a String value.
@@ -366,7 +363,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.
@@ -411,9 +408,7 @@ public boolean getAsBoolean()
-- Returns:
- get this element as a primitive boolean value.
-
- Throws:
-
ClassCastException
- if the value contained is not a valid boolean value.
+- Returns:
- get this element as a primitive boolean value.
@@ -435,7 +430,7 @@ public boolean isNumber()
getAsNumber
-public Number getAsNumber()
+public Number getAsNumber()
- convenience method to get this element as a Number.
@@ -446,7 +441,7 @@ public ClassCastException - if the value contained is not a valid Number.
+NumberFormatException
- if the value contained is not a valid Number.
@@ -468,7 +463,7 @@ public boolean isString()
getAsString
-public String getAsString()
+public String getAsString()
- convenience method to get this element as a String.
@@ -477,9 +472,7 @@ public ClassCastException - if the value contained is not a valid String.
+- Returns:
- get this element as a String.
@@ -498,7 +491,7 @@ public double getAsDouble()
- Returns:
- get this element as a primitive double.
- Throws:
-
ClassCastException
- if the value contained is not a valid double.
+NumberFormatException
- if the value contained is not a valid double.
@@ -506,18 +499,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
.
@@ -525,18 +518,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
.
@@ -555,7 +548,7 @@ public float getAsFloat()
- Returns:
- get this element as a float.
- Throws:
-
ClassCastException
- if the value contained is not a valid float.
+NumberFormatException
- if the value contained is not a valid float.
@@ -574,7 +567,7 @@ public long getAsLong()
- Returns:
- get this element as a primitive long.
- Throws:
-
ClassCastException
- if the value contained is not a valid long.
+NumberFormatException
- if the value contained is not a valid long.
@@ -593,7 +586,7 @@ public short getAsShort()
- Returns:
- get this element as a primitive short.
- Throws:
-
ClassCastException
- if the value contained is not a valid short value.
+NumberFormatException
- if the value contained is not a valid short value.
@@ -612,7 +605,7 @@ public int getAsInt()
- Returns:
- get this element as a primitive integer.
- Throws:
-
ClassCastException
- if the value contained is not a valid integer.
+NumberFormatException
- if the value contained is not a valid integer.
@@ -659,7 +652,7 @@ hashCode
public int hashCode()
-- Overrides:
hashCode
in class Object
+- Overrides:
hashCode
in class Object
@@ -670,10 +663,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
@@ -740,6 +733,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html b/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html
index 4eb2e3d0..1865ef36 100644
--- a/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html
+++ b/gson/docs/javadocs/com/google/gson/JsonSerializationContext.html
@@ -2,22 +2,20 @@
-
+
-JsonSerializationContext (Gson 1.6 API)
+JsonSerializationContext (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -122,7 +119,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 +127,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 +150,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.
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
@@ -241,6 +238,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonSerializer.html b/gson/docs/javadocs/com/google/gson/JsonSerializer.html
index ddeb386b..9c4ae693 100644
--- a/gson/docs/javadocs/com/google/gson/JsonSerializer.html
+++ b/gson/docs/javadocs/com/google/gson/JsonSerializer.html
@@ -2,22 +2,20 @@
-
+
-JsonSerializer (Gson 1.6 API)
+JsonSerializer (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -164,7 +161,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 +186,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
@@ -267,6 +264,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonStreamParser.html b/gson/docs/javadocs/com/google/gson/JsonStreamParser.html
index 2ad2e04e..e4b49b75 100644
--- a/gson/docs/javadocs/com/google/gson/JsonStreamParser.html
+++ b/gson/docs/javadocs/com/google/gson/JsonStreamParser.html
@@ -2,22 +2,20 @@
-
+
-JsonStreamParser (Gson 1.6 API)
+JsonStreamParser (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,15 +90,15 @@ com.google.gson
Class JsonStreamParser
-java.lang.Object
+java.lang.Object
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 +140,13 @@ A streaming parser that allows reading of multiple
-
JsonStreamParser(Reader reader)
+JsonStreamParser(Reader reader)
-JsonStreamParser(String json)
+JsonStreamParser(String json)
@@ -186,17 +183,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.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -215,7 +212,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 +224,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 +251,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 +272,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 +288,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:
@@ -364,6 +361,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html b/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html
index a68e795e..93624342 100644
--- a/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html
+++ b/gson/docs/javadocs/com/google/gson/JsonSyntaxException.html
@@ -2,22 +2,20 @@
-
+
-JsonSyntaxException (Gson 1.6 API)
+JsonSyntaxException (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,15 +90,15 @@ com.google.gson
Class JsonSyntaxException
-java.lang.Object
-
java.lang.Throwable
-
java.lang.Exception
-
java.lang.RuntimeException
+java.lang.Object
+
java.lang.Throwable
+
java.lang.Exception
+
java.lang.RuntimeException
com.google.gson.JsonParseException
com.google.gson.JsonSyntaxException
-- All Implemented Interfaces:
- Serializable
+- All Implemented Interfaces:
- Serializable
@@ -131,20 +128,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 +160,19 @@ This exception is raised when Gson attempts to read (or write) a malformed
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -194,7 +191,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 +199,8 @@ public JsonSyntaxException(
JsonSyntaxException
-public JsonSyntaxException(String msg,
- Throwable cause)
+public JsonSyntaxException(String msg,
+ Throwable cause)
@@ -211,7 +208,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
@@ -281,6 +278,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html b/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html
index 781da3ca..658c1e43 100644
--- a/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html
+++ b/gson/docs/javadocs/com/google/gson/LongSerializationPolicy.html
@@ -2,22 +2,20 @@
-
+
-LongSerializationPolicy (Gson 1.6 API)
+LongSerializationPolicy (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,16 +90,16 @@ com.google.gson
Enum LongSerializationPolicy
-java.lang.Object
-
java.lang.Enum<LongSerializationPolicy>
+java.lang.Object
+
java.lang.Enum<LongSerializationPolicy>
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>
@@ -153,7 +150,7 @@ Defines the expected format for a long
or Long
type wh
JsonElement
-serialize(Long value)
+serialize(Long value)
Serialize this value
using this serialization policy.
@@ -161,7 +158,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.
@@ -173,25 +170,25 @@ Defines the expected format for a long
or Long
type wh
Returns an array containing the constants of this enum type, in
-the order they are declared.
+the order they're declared.
-Methods inherited from class java.lang.Enum
+Methods inherited from class java.lang.Enum
-compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -248,20 +245,20 @@ public static final
values
-public static LongSerializationPolicy[] values()
+public static final LongSerializationPolicy[] values()
- Returns an array containing the constants of this enum type, in
-the order they are declared. This method may be used to iterate
+the order they're declared. This method may be used to iterate
over the constants as follows:
-for (LongSerializationPolicy c : LongSerializationPolicy.values())
- System.out.println(c);
+for(LongSerializationPolicy c : LongSerializationPolicy.values())
+ System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
-the order they are declared
+the order they're declared
@@ -269,7 +266,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 +277,8 @@ 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
-with the specified name
-NullPointerException
- if the argument is null
+IllegalArgumentException
- if this enum type has no constant
+with the specified name
@@ -290,7 +286,7 @@ with the specified name
serialize
-public JsonElement serialize(Long value)
+public JsonElement serialize(Long value)
- Serialize this
value
using this serialization policy.
@@ -360,6 +356,6 @@ DETAIL: ENUM CONSTANTS | FIEL
-Copyright © 2008-2010. All Rights Reserved.
+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 5d91bfb7..14b2bc60 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/Expose.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/Expose.html
@@ -2,22 +2,20 @@
-
+
-Expose (Gson 1.6 API)
+Expose (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -94,8 +91,8 @@ com.google.gson.annotations
Annotation Type Expose
-@Retention(value=RUNTIME)
-@Target(value=FIELD)
+@Retention(value=RUNTIME)
+@Target(value=FIELD)
public @interface Expose
@@ -272,6 +269,6 @@ DETAIL: ELEMENT
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html b/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html
index 3788df6e..b1ab13aa 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/SerializedName.html
@@ -2,22 +2,20 @@
-
+
-SerializedName (Gson 1.6 API)
+SerializedName (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -94,8 +91,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 +152,7 @@ An annotation that indicates this member should be serialized to JSON with
- String
+ String
value
@@ -178,7 +175,7 @@ An annotation that indicates this member should be serialized to JSON with
value
-public abstract String value
+public abstract String value
@@ -248,6 +245,6 @@ DETAIL: ELEMENT
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/annotations/Since.html b/gson/docs/javadocs/com/google/gson/annotations/Since.html
index 672730a0..13ffe90f 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/Since.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/Since.html
@@ -2,22 +2,20 @@
-
+
-Since (Gson 1.6 API)
+Since (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -94,8 +91,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
@@ -240,6 +237,6 @@ DETAIL: ELEMENT
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/annotations/Until.html b/gson/docs/javadocs/com/google/gson/annotations/Until.html
index 54bcc3c5..ddc36e13 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/Until.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/Until.html
@@ -2,22 +2,20 @@
-
+
-Until (Gson 1.6 API)
+Until (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -94,8 +91,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
@@ -245,6 +242,6 @@ DETAIL: ELEMENT
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 ad817ae2..38a3cd0e 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,22 +2,19 @@
-
+
-Uses of Class com.google.gson.annotations.Expose (Gson 1.6 API)
+Uses of Class com.google.gson.annotations.Expose (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -57,7 +54,7 @@ function windowTitle()
PREV PACKAGE
- NEXT PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
@@ -161,7 +158,7 @@ This package provides annotations that can be used with
PREV PACKAGE
- NEXT PACKAGE
+ NEXT PACKAGE
FRAMES
NO FRAMES
@@ -184,6 +181,6 @@ This package provides annotations that can be used with Google, Inc.. All Rights Reserved.
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 41af98e8..3cdc9391 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/package-tree.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/package-tree.html
@@ -2,22 +2,19 @@
-
+
-com.google.gson.annotations Class Hierarchy (Gson 1.6 API)
+com.google.gson.annotations Class Hierarchy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -57,7 +53,7 @@ function windowTitle()
PREV
- NEXT
+ NEXT
FRAMES
NO FRAMES
@@ -92,10 +88,10 @@ Hierarchy For Package com.google.gson.annotations
Annotation Type Hierarchy
-- com.google.gson.annotations.SerializedName (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Expose (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Until (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Since (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Until (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Since (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.SerializedName (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Expose (implements java.lang.annotation.Annotation)
@@ -128,7 +124,7 @@ Annotation Type Hierarchy
PREV
- NEXT
+ NEXT
FRAMES
NO FRAMES
@@ -151,6 +147,6 @@ Annotation Type Hierarchy
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 974d81e2..87bbd683 100644
--- a/gson/docs/javadocs/com/google/gson/annotations/package-use.html
+++ b/gson/docs/javadocs/com/google/gson/annotations/package-use.html
@@ -2,22 +2,19 @@
-
+
-Uses of Package com.google.gson.annotations (Gson 1.6 API)
+Uses of Package com.google.gson.annotations (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -140,6 +136,6 @@ No usage of com.google.gson.annotations
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 94f2534f..4c97f397 100644
--- a/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html
+++ b/gson/docs/javadocs/com/google/gson/class-use/ExclusionStrategy.html
@@ -2,22 +2,19 @@
-
+
-Uses of Interface com.google.gson.ExclusionStrategy (Gson 1.6 API)
+Uses of Interface com.google.gson.ExclusionStrategy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+
+
+
+
+
+com.google.gson.internal
+
+Class $Gson$Preconditions
+
+java.lang.Object
+
com.google.gson.internal.$Gson$Preconditions
+
+
+
+public final class $Gson$Preconditions
- extends Object
+
+
+
+A simple utility class used to check method Preconditions.
+
+
+ public long divideBy(long value) {
+ Preconditions.checkArgument(value != 0);
+ return this.value / value;
+ }
+
+
+
+
+
+- Author:
+ - Inderjeet Singh, Joel Leitch
+
+
+
+
+
+
+Constructor Summary
+
+
+$Gson$Preconditions()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+static void
+checkArgument(boolean condition)
+
+
+
+
+
+
+static
+
+
+
+<T> T
+
+
+
+checkNotNull(T obj)
+
+
+
+
+
+
+static void
+checkState(boolean condition)
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+$Gson$Preconditions
+
+public $Gson$Preconditions()
+
+
+
+
+
+
+
+
+
+Method Detail
+
+
+
+
+checkNotNull
+
+public static <T> T checkNotNull(T obj)
+
+
+
+
+
+
+
+
+checkArgument
+
+public static void checkArgument(boolean condition)
+
+
+
+
+
+
+
+
+checkState
+
+public static void checkState(boolean condition)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/$Gson$Types.html b/gson/docs/javadocs/com/google/gson/internal/$Gson$Types.html
new file mode 100644
index 00000000..d51cf829
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/$Gson$Types.html
@@ -0,0 +1,507 @@
+
+
+
+
+
+
+
+$Gson$Types (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+
+
+
+
+
+com.google.gson.internal
+
+Class $Gson$Types
+
+java.lang.Object
+
com.google.gson.internal.$Gson$Types
+
+
+
+public final class $Gson$Types
- extends Object
+
+
+
+Static methods for working with types.
+
+
+
+
+- Author:
+ - Bob Lee, Jesse Wilson
+
+
+
+
+
+
+Method Summary
+
+
+
+static GenericArrayType
+arrayOf(Type componentType)
+
+
+ Returns an array type whose elements are all instances of
+ componentType
.
+
+
+
+static Type
+canonicalize(Type type)
+
+
+ Returns a type that is functionally equal but not necessarily equal
+ according to Object.equals()
.
+
+
+
+static boolean
+equals(Type a,
+ Type b)
+
+
+ Returns true if a
and b
are equal.
+
+
+
+static Type
+getArrayComponentType(Type array)
+
+
+ Returns the component type of this array type.
+
+
+
+static Type
+getCollectionElementType(Type context,
+ Class<?> contextRawType)
+
+
+ Returns the element type of this collection type.
+
+
+
+static Type[]
+getMapKeyAndValueTypes(Type context,
+ Class<?> contextRawType)
+
+
+ Returns a two element array containing this map's key and value types in
+ positions 0 and 1 respectively.
+
+
+
+static Class<?>
+getRawType(Type type)
+
+
+
+
+
+
+static boolean
+isArray(Type type)
+
+
+ Returns true if this type is an array.
+
+
+
+static ParameterizedType
+newParameterizedTypeWithOwner(Type ownerType,
+ Type rawType,
+ Type... typeArguments)
+
+
+ Returns a new parameterized type, applying typeArguments
to
+ rawType
and enclosed by ownerType
.
+
+
+
+static Type
+resolve(Type context,
+ Class<?> contextRawType,
+ Type toResolve)
+
+
+
+
+
+
+static WildcardType
+subtypeOf(Type bound)
+
+
+ Returns a type that represents an unknown type that extends bound
.
+
+
+
+static WildcardType
+supertypeOf(Type bound)
+
+
+ Returns a type that represents an unknown supertype of bound
.
+
+
+
+static String
+typeToString(Type type)
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+
+Method Detail
+
+
+
+
+newParameterizedTypeWithOwner
+
+public static ParameterizedType newParameterizedTypeWithOwner(Type ownerType,
+ Type rawType,
+ Type... typeArguments)
+
+- Returns a new parameterized type, applying
typeArguments
to
+ rawType
and enclosed by ownerType
.
+
+
+
+- Returns:
- a
serializable
parameterized type.
+
+
+
+
+
+arrayOf
+
+public static GenericArrayType arrayOf(Type componentType)
+
+- Returns an array type whose elements are all instances of
+
componentType
.
+
+
+
+- Returns:
- a
serializable
generic array type.
+
+
+
+
+
+subtypeOf
+
+public static WildcardType subtypeOf(Type bound)
+
+- Returns a type that represents an unknown type that extends
bound
.
+ For example, if bound
is CharSequence.class
, this returns
+ ? extends CharSequence
. If bound
is Object.class
,
+ this returns ?
, which is shorthand for ? extends Object
.
+
+
+
+
+
+
+
+
+supertypeOf
+
+public static WildcardType supertypeOf(Type bound)
+
+- Returns a type that represents an unknown supertype of
bound
. For
+ example, if bound
is String.class
, this returns ?
+ super String
.
+
+
+
+
+
+
+
+
+canonicalize
+
+public static Type canonicalize(Type type)
+
+- Returns a type that is functionally equal but not necessarily equal
+ according to
Object.equals()
. The returned
+ type is Serializable
.
+
+
+
+
+
+
+
+
+getRawType
+
+public static Class<?> getRawType(Type type)
+
+
+
+
+
+
+
+
+equals
+
+public static boolean equals(Type a,
+ Type b)
+
+- Returns true if
a
and b
are equal.
+
+
+
+
+
+
+
+
+typeToString
+
+public static String typeToString(Type type)
+
+
+
+
+
+
+
+
+isArray
+
+public static boolean isArray(Type type)
+
+- Returns true if this type is an array.
+
+
+
+
+
+
+
+
+getArrayComponentType
+
+public static Type getArrayComponentType(Type array)
+
+- Returns the component type of this array type.
+
+
+
+- Throws:
+
ClassCastException
- if this type is not an array.
+
+
+
+
+
+getCollectionElementType
+
+public static Type getCollectionElementType(Type context,
+ Class<?> contextRawType)
+
+- Returns the element type of this collection type.
+
+
+
+- Throws:
+
IllegalArgumentException
- if this type is not a collection.
+
+
+
+
+
+getMapKeyAndValueTypes
+
+public static Type[] getMapKeyAndValueTypes(Type context,
+ Class<?> contextRawType)
+
+- Returns a two element array containing this map's key and value types in
+ positions 0 and 1 respectively.
+
+
+
+
+
+
+
+
+resolve
+
+public static Type resolve(Type context,
+ Class<?> contextRawType,
+ Type toResolve)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Preconditions.html b/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Preconditions.html
new file mode 100644
index 00000000..3aece2a8
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Preconditions.html
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+Uses of Class com.google.gson.internal.$Gson$Preconditions (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+
+
+Uses of Class
com.google.gson.internal.$Gson$Preconditions
+
+No usage of com.google.gson.internal.$Gson$Preconditions
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Types.html b/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Types.html
new file mode 100644
index 00000000..9e5d8d04
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/class-use/$Gson$Types.html
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+Uses of Class com.google.gson.internal.$Gson$Types (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+
+
+Uses of Class
com.google.gson.internal.$Gson$Types
+
+No usage of com.google.gson.internal.$Gson$Types
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/package-frame.html b/gson/docs/javadocs/com/google/gson/internal/package-frame.html
new file mode 100644
index 00000000..528a9a91
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/package-frame.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+com.google.gson.internal (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+com.google.gson.internal
+
+
+
+Classes
+
+
+$Gson$Preconditions
+
+$Gson$Types
+
+
+
+
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/package-summary.html b/gson/docs/javadocs/com/google/gson/internal/package-summary.html
new file mode 100644
index 00000000..699eb5ff
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/package-summary.html
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+com.google.gson.internal (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+
+Package com.google.gson.internal
+
+Do NOT use any class in this package as they are meant for internal use in Gson.
+
+See:
+
+ Description
+
+
+
+
+
+Class Summary
+
+
+$Gson$Preconditions
+A simple utility class used to check method Preconditions.
+
+
+$Gson$Types
+Static methods for working with types.
+
+
+
+
+
+Package com.google.gson.internal Description
+
+
+
+Do NOT use any class in this package as they are meant for internal use in Gson.
+ These classes will very likely change incompatibly in future versions. You have been warned.
+
+
+
+
+- Author:
+ - Inderjeet Singh, Joel Leitch, Jesse Wilson
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/package-tree.html b/gson/docs/javadocs/com/google/gson/internal/package-tree.html
new file mode 100644
index 00000000..6dba37a8
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/package-tree.html
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+com.google.gson.internal Class Hierarchy (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+
+
+Hierarchy For Package com.google.gson.internal
+
+
+
+- Package Hierarchies:
- All Packages
+
+
+Class Hierarchy
+
+
+- java.lang.Object
+- com.google.gson.internal.$Gson$Preconditions
- com.google.gson.internal.$Gson$Types
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
+
+
diff --git a/gson/docs/javadocs/com/google/gson/internal/package-use.html b/gson/docs/javadocs/com/google/gson/internal/package-use.html
new file mode 100644
index 00000000..850a8263
--- /dev/null
+++ b/gson/docs/javadocs/com/google/gson/internal/package-use.html
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+Uses of Package com.google.gson.internal (Gson 1.7 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+
+
+Uses of Package
com.google.gson.internal
+
+No usage of com.google.gson.internal
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+ All Classes
+
+
+
+
+
+
+
+
+
+
+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 c950c8cd..2866954b 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 1.6 API)
+com.google.gson (Gson 1.7 API)
-
+
diff --git a/gson/docs/javadocs/com/google/gson/package-summary.html b/gson/docs/javadocs/com/google/gson/package-summary.html
index 2853d532..4286d68c 100644
--- a/gson/docs/javadocs/com/google/gson/package-summary.html
+++ b/gson/docs/javadocs/com/google/gson/package-summary.html
@@ -2,22 +2,20 @@
-
+
-com.google.gson (Gson 1.6 API)
+com.google.gson (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -300,6 +297,6 @@ This package provides the Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/package-tree.html b/gson/docs/javadocs/com/google/gson/package-tree.html
index 1a7158fb..b9ad77dd 100644
--- a/gson/docs/javadocs/com/google/gson/package-tree.html
+++ b/gson/docs/javadocs/com/google/gson/package-tree.html
@@ -2,22 +2,19 @@
-
+
-com.google.gson Class Hierarchy (Gson 1.6 API)
+com.google.gson Class Hierarchy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -92,15 +88,15 @@ Hierarchy For Package com.google.gson
Class Hierarchy
-- java.lang.Object
+- java.lang.Object
- com.google.gson.FieldAttributes
- com.google.gson.Gson
- com.google.gson.GsonBuilder
- com.google.gson.JsonElement
-- com.google.gson.JsonArray (implements java.lang.Iterable<T>)
+
- com.google.gson.JsonArray (implements java.lang.Iterable<T>)
- com.google.gson.JsonNull
- com.google.gson.JsonObject
- com.google.gson.JsonPrimitive
- - com.google.gson.JsonParser
- com.google.gson.JsonStreamParser (implements java.util.Iterator<E>)
-
- java.lang.Throwable (implements java.io.Serializable)
+
- com.google.gson.JsonParser
- com.google.gson.JsonStreamParser (implements java.util.Iterator<E>)
+
- java.lang.Throwable (implements java.io.Serializable)
-- java.lang.Exception
-- java.lang.RuntimeException
+- java.lang.Exception
+- java.lang.RuntimeException
- com.google.gson.JsonParseException
- com.google.gson.JsonIOException
- com.google.gson.JsonSyntaxException
@@ -117,10 +113,10 @@ Interface Hierarchy
Enum Hierarchy
-- java.lang.Object
-- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
- java.lang.Object
+- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
-- com.google.gson.FieldNamingPolicy
- com.google.gson.LongSerializationPolicy
+ - com.google.gson.LongSerializationPolicy
- com.google.gson.FieldNamingPolicy
@@ -177,6 +173,6 @@ Enum Hierarchy
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/package-use.html b/gson/docs/javadocs/com/google/gson/package-use.html
index 7c373003..98fb4db6 100644
--- a/gson/docs/javadocs/com/google/gson/package-use.html
+++ b/gson/docs/javadocs/com/google/gson/package-use.html
@@ -2,22 +2,19 @@
-
+
-Uses of Package com.google.gson (Gson 1.6 API)
+Uses of Package com.google.gson (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -271,6 +267,6 @@ Classes in com.google.gs
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/reflect/TypeToken.html b/gson/docs/javadocs/com/google/gson/reflect/TypeToken.html
index abbef568..dae9f731 100644
--- a/gson/docs/javadocs/com/google/gson/reflect/TypeToken.html
+++ b/gson/docs/javadocs/com/google/gson/reflect/TypeToken.html
@@ -2,22 +2,20 @@
-
+
-TypeToken (Gson 1.6 API)
+TypeToken (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,34 +90,34 @@ com.google.gson.reflect
Class TypeToken<T>
-java.lang.Object
+java.lang.Object
com.google.gson.reflect.TypeToken<T>
-public abstract class TypeToken<T>
- extends Object
+public class TypeToken<T>
- extends Object
-Represents a generic type T
.
+Represents a generic type T
. Java doesn't yet provide a way to
+ represent generic types, so this class does. Forces clients to create a
+ subclass of this class which enables retrieval the type information even at
+ runtime.
+
+
For example, to create a type literal for List<String>
, you can
+ create an empty anonymous inner class:
- You can use this class to get the generic type for a class. For example,
- to get the generic type for Collection<Foo>
, you can use:
- Type typeOfCollectionOfFoo = new TypeToken<Collection<Foo>>(){}.getType()
-
-
-
Assumes Type
implements equals()
and hashCode()
- as a value (as opposed to identity) comparison.
+ TypeToken<List<String>> list = new TypeToken<List<String>>() {};
- Also implements isAssignableFrom(Type)
to check type-safe
- assignability.
+
This syntax cannot be used to create type literals that have wildcard
+ parameters, such as Class<?>
or List<? extends CharSequence>
.
- Author:
- - Bob Lee, Sven Mawson
+ - Bob Lee, Sven Mawson, Jesse Wilson
@@ -137,10 +134,10 @@ Represents a generic type T
.
boolean
-equals(Object o)
+equals(Object o)
- Method to test equality.
+
@@ -152,30 +149,30 @@ Represents a generic type T
.
-get(Class<T> type)
+get(Class<T> type)
- Gets type token for the given Class
instance.
+ Gets type literal for the given Class
instance.
static TypeToken<?>
-get(Type type)
+get(Type type)
- Gets type token for the given Type
instance.
+ Gets type literal for the given Type
instance.
- Class<? super T>
+ Class<? super T>
getRawType()
- Gets the raw type.
+ Returns the raw (non-generic) type for this type.
- Type
+ Type
getType()
@@ -187,23 +184,25 @@ Represents a generic type T
.
hashCode()
- Hashcode for this object.
+
boolean
-isAssignableFrom(Class<?> cls)
+isAssignableFrom(Class<?> cls)
- Check if this type is assignable from the given class object.
+ Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
boolean
-isAssignableFrom(Type from)
+isAssignableFrom(Type from)
- Check if this type is assignable from the given Type.
+ Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
@@ -211,24 +210,25 @@ Represents a generic type T
.
isAssignableFrom(TypeToken<?> token)
- Check if this type is assignable from the given type token.
+ Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
- String
+ String
toString()
- Returns a string representation of this object.
+
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -247,9 +247,9 @@ Represents a generic type T
.
getRawType
-public Class<? super T> getRawType()
+public final Class<? super T> getRawType()
-- Gets the raw type.
+
- Returns the raw (non-generic) type for this type.
@@ -260,7 +260,7 @@ public
getType
-public Type getType()
+public final Type getType()
- Gets underlying
Type
instance.
isAssignableFrom
-public boolean isAssignableFrom(Class<?> cls)
+@Deprecated
+public boolean isAssignableFrom(Class<?> cls)
+- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
+
- Check if this type is assignable from the given class object.
@@ -286,8 +290,12 @@ public boolean isAssignableFrom(
isAssignableFrom
-public boolean isAssignableFrom(Type from)
+@Deprecated
+public boolean isAssignableFrom(Type from)
+- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
+
- Check if this type is assignable from the given Type.
@@ -299,8 +307,12 @@ public boolean isAssignableFrom(
isAssignableFrom
-public boolean isAssignableFrom(TypeToken<?> token)
+@Deprecated
+public boolean isAssignableFrom(TypeToken<?> token)
+- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
+
- Check if this type is assignable from the given type token.
@@ -312,16 +324,13 @@ public boolean isAssignableFrom(
hashCode
-public int hashCode()
+public final int hashCode()
-- Hashcode for this object.
-
-- Overrides:
hashCode
in class Object
+ - Overrides:
hashCode
in class Object
-
-- Returns:
- hashcode for this object.
+
@@ -329,16 +338,13 @@ public int hashCode()
equals
-public boolean equals(Object o)
+public final boolean equals(Object o)
-- Method to test equality.
-
-- Overrides:
equals
in class Object
+ - Overrides:
equals
in class Object
-
-- Returns:
- true if this object is logically equal to the specified object, false otherwise.
+
@@ -346,16 +352,13 @@ public boolean equals(
toString
-public String toString()
+public final String toString()
-- Returns a string representation of this object.
-
-- Overrides:
toString
in class Object
+ - Overrides:
toString
in class Object
-
-- Returns:
- a string representation of this object.
+
@@ -363,9 +366,9 @@ public
get
-public static TypeToken<?> get(Type type)
+public static TypeToken<?> get(Type type)
-- Gets type token for the given
Type
instance.
+- Gets type literal for the given
Type
instance.
@@ -376,9 +379,9 @@ public static
get
-public static <T> TypeToken<T> get(Class<T> type)
+public static <T> TypeToken<T> get(Class<T> type)
-- Gets type token for the given
Class
instance.
+- Gets type literal for the given
Class
instance.
@@ -445,6 +448,6 @@ DETAIL: FIELD | CONSTR | METHO
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 5a281eb4..2531e1fb 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,22 +2,19 @@
-
+
-Uses of Class com.google.gson.reflect.TypeToken (Gson 1.6 API)
+Uses of Class com.google.gson.reflect.TypeToken (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -56,7 +53,7 @@ function windowTitle()
- PREV PACKAGE
+ PREV PACKAGE
NEXT PACKAGE
FRAMES
@@ -146,7 +143,7 @@ This package provides utility classes for finding type information for generic t
- PREV PACKAGE
+ PREV PACKAGE
NEXT PACKAGE
FRAMES
@@ -170,6 +167,6 @@ This package provides utility classes for finding type information for generic t
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 9a156ddf..bad60bff 100644
--- a/gson/docs/javadocs/com/google/gson/reflect/package-tree.html
+++ b/gson/docs/javadocs/com/google/gson/reflect/package-tree.html
@@ -2,22 +2,19 @@
-
+
-com.google.gson.reflect Class Hierarchy (Gson 1.6 API)
+com.google.gson.reflect Class Hierarchy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -56,7 +52,7 @@ function windowTitle()
- PREV
+ PREV
NEXT
FRAMES
@@ -92,7 +88,7 @@ Hierarchy For Package com.google.gson.reflect
Class Hierarchy
-- java.lang.Object
@@ -125,7 +121,7 @@ Class Hierarchy
- PREV
+ PREV
NEXT
FRAMES
@@ -149,6 +145,6 @@ Class Hierarchy
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 31667c1a..dcaf25e6 100644
--- a/gson/docs/javadocs/com/google/gson/reflect/package-use.html
+++ b/gson/docs/javadocs/com/google/gson/reflect/package-use.html
@@ -2,22 +2,19 @@
-
+
-Uses of Package com.google.gson.reflect (Gson 1.6 API)
+Uses of Package com.google.gson.reflect (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -166,6 +162,6 @@ Classes in co
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonReader.html b/gson/docs/javadocs/com/google/gson/stream/JsonReader.html
index 0df9c7e1..b37be88a 100644
--- a/gson/docs/javadocs/com/google/gson/stream/JsonReader.html
+++ b/gson/docs/javadocs/com/google/gson/stream/JsonReader.html
@@ -2,22 +2,20 @@
-
+
-JsonReader (Gson 1.6 API)
+JsonReader (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,15 +90,15 @@ com.google.gson.stream
Class JsonReader
-java.lang.Object
+java.lang.Object
com.google.gson.stream.JsonReader
+public final class JsonReader
- extends Object
- implements Closeable
@@ -273,7 +270,7 @@ Reads a JSON (RFC 4627)
Constructor Summary
-JsonReader(Reader in)
+JsonReader(Reader in)
Creates a new instance that reads a JSON-encoded stream from in
.
@@ -312,7 +309,7 @@ Reads a JSON (RFC 4627)
close()
- Closes this JSON reader and the underlying Reader
.
+ Closes this JSON reader and the underlying Reader
.
@@ -386,7 +383,7 @@ Reads a JSON (RFC 4627)
- String
+ String
nextName()
@@ -404,7 +401,7 @@ Reads a JSON (RFC 4627)
- String
+ String
nextString()
@@ -437,7 +434,7 @@ Reads a JSON (RFC 4627)
- String
+ String
toString()
@@ -447,10 +444,10 @@ Reads a JSON (RFC 4627)
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -469,7 +466,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 +499,7 @@ public 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 +543,7 @@ public 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 +554,7 @@ public void beginArray()
- Throws:
-
IOException
+IOException
@@ -566,7 +563,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 +574,7 @@ public void endArray()
- Throws:
-
IOException
+IOException
@@ -586,7 +583,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 +594,7 @@ public void beginObject()
- Throws:
-
IOException
+IOException
@@ -606,7 +603,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 +614,7 @@ public void endObject()
- Throws:
-
IOException
+IOException
@@ -626,7 +623,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 +633,7 @@ public boolean hasNext()
- Throws:
-
IOException
+IOException
@@ -645,7 +642,7 @@ public boolean hasNext()
peek
public JsonToken peek()
- throws IOException
+ throws IOException
- Returns the type of the next token without consuming it.
@@ -655,7 +652,7 @@ public IOException
+IOException
@@ -663,8 +660,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 +672,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 +681,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 +694,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 +705,7 @@ public IOException
+ throws IOException
- Returns the
boolean
value of the next token,
consuming it.
@@ -719,9 +716,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 +727,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 +738,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,7 +749,7 @@ 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
@@ -764,10 +761,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 +773,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 +786,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 +798,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 +811,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 +823,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
- Throws:
-
IOException
+IOException
@@ -845,7 +842,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 +854,7 @@ public void skipValue()
- Throws:
-
IOException
+IOException
@@ -865,10 +862,10 @@ public void skipValue()
toString
-public String toString()
+public String toString()
@@ -935,6 +932,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonToken.html b/gson/docs/javadocs/com/google/gson/stream/JsonToken.html
index 9b3bbd47..a4a819d4 100644
--- a/gson/docs/javadocs/com/google/gson/stream/JsonToken.html
+++ b/gson/docs/javadocs/com/google/gson/stream/JsonToken.html
@@ -2,22 +2,20 @@
-
+
-JsonToken (Gson 1.6 API)
+JsonToken (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,16 +90,16 @@ com.google.gson.stream
Enum JsonToken
-java.lang.Object
-
java.lang.Enum<JsonToken>
+java.lang.Object
+
java.lang.Enum<JsonToken>
com.google.gson.stream.JsonToken
-- All Implemented Interfaces:
- Serializable, Comparable<JsonToken>
+- All Implemented Interfaces:
- Serializable, Comparable<JsonToken>
+public enum JsonToken
- extends Enum<JsonToken>
@@ -200,7 +197,7 @@ A structure, name or value type in a JSON-encoded string.
static JsonToken
-valueOf(String name)
+valueOf(String name)
Returns the enum constant of this type with the specified name.
@@ -212,25 +209,25 @@ A structure, name or value type in a JSON-encoded string.
Returns an array containing the constants of this enum type, in
-the order they are declared.
+the order they're declared.
-Methods inherited from class java.lang.Enum
+Methods inherited from class java.lang.Enum
-compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass, notify, notifyAll, wait, wait, wait
@@ -384,20 +381,20 @@ public static final
values
-public static JsonToken[] values()
+public static final JsonToken[] values()
- Returns an array containing the constants of this enum type, in
-the order they are declared. This method may be used to iterate
+the order they're declared. This method may be used to iterate
over the constants as follows:
-for (JsonToken c : JsonToken.values())
- System.out.println(c);
+for(JsonToken c : JsonToken.values())
+ System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
-the order they are declared
+the order they're declared
@@ -405,7 +402,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 +413,8 @@ 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
-with the specified name
-NullPointerException
- if the argument is null
+IllegalArgumentException
- if this enum type has no constant
+with the specified name
@@ -482,6 +478,6 @@ DETAIL: ENUM CONSTANTS | FIEL
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html b/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html
index 52f9d4d4..60eb8514 100644
--- a/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html
+++ b/gson/docs/javadocs/com/google/gson/stream/JsonWriter.html
@@ -2,22 +2,20 @@
-
+
-JsonWriter (Gson 1.6 API)
+JsonWriter (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,15 +90,15 @@ com.google.gson.stream
Class JsonWriter
-java.lang.Object
+java.lang.Object
com.google.gson.stream.JsonWriter
+public final class JsonWriter
- extends Object
- implements Closeable
@@ -195,7 +192,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 +215,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 +252,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 +276,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.
@@ -302,7 +299,7 @@ Writes a JSON (RFC 4627)
JsonWriter
-name(String name)
+name(String name)
Encodes the property name.
@@ -327,7 +324,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
@@ -368,7 +365,7 @@ Writes a JSON (RFC 4627)
JsonWriter
-value(Number value)
+value(Number value)
Encodes value
.
@@ -376,7 +373,7 @@ Writes a JSON (RFC 4627)
JsonWriter
-value(String value)
+value(String value)
Encodes value
.
@@ -385,10 +382,10 @@ Writes a JSON (RFC 4627)
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -407,11 +404,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.
@@ -428,7 +425,7 @@ public JsonWriter(
setIndent
-public void setIndent(String indent)
+public 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
@@ -456,7 +453,7 @@ public 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
.
@@ -525,7 +522,7 @@ public boolean isHtmlSafe()
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()
.
@@ -537,7 +534,7 @@ public IOException
+IOException
@@ -546,7 +543,7 @@ public JsonWriter endArray()
- throws IOException
+ throws IOException
- Ends encoding the current array.
@@ -557,7 +554,7 @@ public IOException
+IOException
@@ -566,7 +563,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()
.
@@ -578,7 +575,7 @@ public IOException
+IOException
@@ -587,7 +584,7 @@ public JsonWriter endObject()
- throws IOException
+ throws IOException
- Ends encoding the current object.
@@ -598,7 +595,7 @@ public IOException
+IOException
@@ -606,8 +603,8 @@ public
name
-public JsonWriter name(String name)
- throws IOException
+public JsonWriter name(String name)
+ throws IOException
- Encodes the property name.
@@ -618,7 +615,7 @@ public IOException
+IOException
@@ -626,8 +623,8 @@ public
value
-public JsonWriter value(String value)
- throws IOException
+public JsonWriter value(String value)
+ throws IOException
- Encodes
value
.
@@ -638,7 +635,7 @@ public IOException
+IOException
@@ -647,7 +644,7 @@ public JsonWriter nullValue()
- throws IOException
+ throws IOException
- Encodes
null
.
@@ -658,7 +655,7 @@ public IOException
+IOException
@@ -667,7 +664,7 @@ public JsonWriter value(boolean value)
- throws IOException
+ throws IOException
- Encodes
value
.
@@ -678,7 +675,7 @@ public IOException
+IOException
@@ -687,7 +684,7 @@ public JsonWriter value(double value)
- throws IOException
+ throws IOException
- Encodes
value
.
@@ -695,11 +692,11 @@ public NaNs
or
- infinities
.
+
- Parameters:
value
- a finite value. May not be NaNs
or
+ infinities
.
- Returns:
- this writer.
- Throws:
-
IOException
+IOException
@@ -708,7 +705,7 @@ public JsonWriter value(long value)
- throws IOException
+ throws IOException
- Encodes
value
.
@@ -719,7 +716,7 @@ public IOException
+IOException
@@ -727,8 +724,8 @@ public
value
-public JsonWriter value(Number value)
- throws IOException
+public JsonWriter value(Number value)
+ throws IOException
- Encodes
value
.
@@ -736,11 +733,11 @@ public NaNs
or
- infinities
.
+
- Parameters:
value
- a finite value. May not be NaNs
or
+ infinities
.
- Returns:
- this writer.
- Throws:
-
IOException
+IOException
@@ -749,9 +746,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.
@@ -760,7 +757,7 @@ public void flush()
- Throws:
-
IOException
+IOException
@@ -769,17 +766,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
- Throws:
-
IOException
- if the JSON document is incomplete.
+IOException
- if the JSON document is incomplete.
@@ -843,6 +840,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html b/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html
index bd02ab7e..a29e0bd2 100644
--- a/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html
+++ b/gson/docs/javadocs/com/google/gson/stream/MalformedJsonException.html
@@ -2,22 +2,20 @@
-
+
-MalformedJsonException (Gson 1.6 API)
+MalformedJsonException (Gson 1.7 API)
-
+
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -93,18 +90,18 @@ com.google.gson.stream
Class MalformedJsonException
-java.lang.Object
-
java.lang.Throwable
-
java.lang.Exception
-
java.io.IOException
+java.lang.Object
+
java.lang.Throwable
+
java.lang.Exception
+
java.io.IOException
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 +125,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 +157,19 @@ Thrown when a reader encounters malformed JSON. Some syntax errors can be
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
@@ -191,7 +188,7 @@ Thrown when a reader encounters malformed JSON. Some syntax errors can be
MalformedJsonException
-public MalformedJsonException(String msg)
+public MalformedJsonException(String msg)
@@ -199,8 +196,8 @@ public MalformedJsonException(
MalformedJsonException
-public MalformedJsonException(String msg,
- Throwable throwable)
+public MalformedJsonException(String msg,
+ Throwable throwable)
@@ -208,7 +205,7 @@ public MalformedJsonException(
MalformedJsonException
-public MalformedJsonException(Throwable throwable)
+public MalformedJsonException(Throwable throwable)
@@ -272,6 +269,6 @@ DETAIL: FIELD | CONSTR |&n
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 6b4bd537..08c94867 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,22 +2,19 @@
-
+
-Uses of Class com.google.gson.stream.JsonReader (Gson 1.6 API)
+Uses of Class com.google.gson.stream.JsonReader (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -59,7 +55,7 @@ function windowTitle()
PREV
NEXT
- FRAMES
+ FRAMES
NO FRAMES
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -187,6 +184,6 @@ Package com.google.gson.stream
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 f1989870..63b125ba 100644
--- a/gson/docs/javadocs/com/google/gson/stream/package-tree.html
+++ b/gson/docs/javadocs/com/google/gson/stream/package-tree.html
@@ -2,22 +2,19 @@
-
+
-com.google.gson.stream Class Hierarchy (Gson 1.6 API)
+com.google.gson.stream Class Hierarchy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -92,13 +88,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
+- java.lang.Exception
+- java.io.IOException
- com.google.gson.stream.MalformedJsonException
@@ -108,8 +104,8 @@ Class Hierarchy
Enum Hierarchy
-- java.lang.Object
-- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
- java.lang.Object
+- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
- com.google.gson.stream.JsonToken
@@ -168,6 +164,6 @@ Enum Hierarchy
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
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 65d0b57e..f3980c31 100644
--- a/gson/docs/javadocs/com/google/gson/stream/package-use.html
+++ b/gson/docs/javadocs/com/google/gson/stream/package-use.html
@@ -2,22 +2,19 @@
-
+
-Uses of Package com.google.gson.stream (Gson 1.6 API)
+Uses of Package com.google.gson.stream (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -201,6 +197,6 @@ Classes in com
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/constant-values.html b/gson/docs/javadocs/constant-values.html
index e54e672f..ede2747d 100644
--- a/gson/docs/javadocs/constant-values.html
+++ b/gson/docs/javadocs/constant-values.html
@@ -2,22 +2,19 @@
-
+
-Constant Field Values (Gson 1.6 API)
+Constant Field Values (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -142,6 +138,6 @@ Constant Field Values
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/deprecated-list.html b/gson/docs/javadocs/deprecated-list.html
index ff95ea2a..fea45e8e 100644
--- a/gson/docs/javadocs/deprecated-list.html
+++ b/gson/docs/javadocs/deprecated-list.html
@@ -2,22 +2,19 @@
-
+
-Deprecated List (Gson 1.6 API)
+Deprecated List (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -86,8 +82,36 @@ function windowTitle()
Contents
+
+
+
+
+Deprecated Methods
+
+
+com.google.gson.reflect.TypeToken.isAssignableFrom(Class>)
+
+ this implementation may be inconsistent with javac for types
+ with wildcards.
+
+
+com.google.gson.reflect.TypeToken.isAssignableFrom(Type)
+
+ this implementation may be inconsistent with javac for types
+ with wildcards.
+
+
+com.google.gson.reflect.TypeToken.isAssignableFrom(TypeToken>)
+
+ this implementation may be inconsistent with javac for types
+ with wildcards.
+
+
+
+
@@ -142,6 +166,6 @@ function windowTitle()
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/help-doc.html b/gson/docs/javadocs/help-doc.html
index abcf7608..62252e17 100644
--- a/gson/docs/javadocs/help-doc.html
+++ b/gson/docs/javadocs/help-doc.html
@@ -2,22 +2,19 @@
-
+
-API Help (Gson 1.6 API)
+API Help (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -219,6 +215,6 @@ This help file applies to API documentation generated using the standard doclet.
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/index-all.html b/gson/docs/javadocs/index-all.html
index 7ba29076..3e91d83a 100644
--- a/gson/docs/javadocs/index-all.html
+++ b/gson/docs/javadocs/index-all.html
@@ -2,22 +2,19 @@
-
+
-Index (Gson 1.6 API)
+Index (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -79,7 +75,15 @@ 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
+
+$
+
+- $Gson$Preconditions - Class in com.google.gson.internal
- A simple utility class used to check method Preconditions.
- $Gson$Preconditions() -
+Constructor for class com.google.gson.internal.$Gson$Preconditions
+
-
+
- $Gson$Types - Class in com.google.gson.internal
- Static methods for working with types.
+
A
@@ -92,6 +96,9 @@ Method in class com.google.gson.addAll(JsonArray) -
Method in class com.google.gson.JsonArray
- Adds all the elements of the specified array to self.
+
- addDeserializationExclusionStrategy(ExclusionStrategy) -
+Method in class com.google.gson.GsonBuilder
+
- Configures Gson to apply the passed in exclusion strategy during deserialization.
- addProperty(String, String) -
Method in class com.google.gson.JsonObject
- Convenience method to add a primitive member.
@@ -104,6 +111,13 @@ Method in class com.google.gson.addProperty(String, Character) -
Method in class com.google.gson.JsonObject
- Convenience method to add a char member.
+
- addSerializationExclusionStrategy(ExclusionStrategy) -
+Method in class com.google.gson.GsonBuilder
+
- Configures Gson to apply the passed in exclusion strategy during serialization.
+
- arrayOf(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns an array type whose elements are all instances of
+
componentType
.
@@ -128,14 +142,27 @@ Method in class com.google.gson.stream.
C
+- canonicalize(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns a type that is functionally equal but not necessarily equal
+ according to
Object.equals()
.
+ - checkArgument(boolean) -
+Static method in class com.google.gson.internal.$Gson$Preconditions
+
-
+
- checkNotNull(T) -
+Static method in class com.google.gson.internal.$Gson$Preconditions
+
-
+
- checkState(boolean) -
+Static method in class com.google.gson.internal.$Gson$Preconditions
+
-
- 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() -
+ vice-versa.
- com.google.gson.annotations - package com.google.gson.annotations
- This package provides annotations that can be used with
Gson
. - com.google.gson.internal - package com.google.gson.internal
- Do NOT use any class in this package as they are meant for internal use in 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.
- createInstance(Type) -
@@ -165,6 +192,10 @@ Method in class com.google.gson.
E
+- enableComplexMapKeySerialization() -
+Method in class com.google.gson.GsonBuilder
+
- Enabling this feature will only change the serialized form if the map key is
+ a complex type (i.e.
- endArray() -
Method in class com.google.gson.stream.JsonReader
- Consumes the next token from the JSON stream and asserts that it is the
@@ -182,15 +213,24 @@ Method in class com.google.gson.stream.entrySet() -
Method in class com.google.gson.JsonObject
- Returns a set of members of this object.
+
- equals(Type, Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns true if
a
and b
are equal.
+ - equals(Object) -
+Method in class com.google.gson.JsonArray
+
-
- equals(Object) -
Method in class com.google.gson.JsonNull
- All instances of JsonNull are the same
+
- equals(Object) -
+Method in class com.google.gson.JsonObject
+
-
- equals(Object) -
Method in class com.google.gson.JsonPrimitive
-
- equals(Object) -
Method in class com.google.gson.reflect.TypeToken
-
- Method to test equality.
+
-
- excludeFieldsWithModifiers(int...) -
Method in class com.google.gson.GsonBuilder
- Configures Gson to excludes all class fields that have the specified modifiers.
@@ -207,7 +247,7 @@ Method in class com.google.gson.
- 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() -
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
@@ -252,10 +292,10 @@ Method in class com.google.gson.Returns the member with the specified name.
- get(Type) -
Static method in class com.google.gson.reflect.TypeToken
-
- Gets type token for the given
Type
instance.
+- Gets type literal for the given
Type
instance.
- get(Class<T>) -
Static method in class com.google.gson.reflect.TypeToken
-
- Gets type token for the given
Class
instance.
+- Gets type literal for the given
Class
instance.
- getAnnotation(Class<T>) -
Method in class com.google.gson.FieldAttributes
- Return the
T
annotation object from this field if it exist; otherwise returns
@@ -263,24 +303,27 @@ Method in class com.google.gson.getAnnotations() -
Method in class com.google.gson.FieldAttributes
- Return the annotations that are present on this field.
+
- getArrayComponentType(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns the component type of this array type.
- 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.
@@ -367,10 +410,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.
@@ -385,13 +428,16 @@ 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.
- getAsString() -
Method in class com.google.gson.JsonPrimitive
- convenience method to get this element as a String.
+
- getCollectionElementType(Type, Class<?>) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns the element type of this collection type.
- getDeclaredClass() -
Method in class com.google.gson.FieldAttributes
- Returns the
Class<?>
object that was declared for this field.
@@ -408,12 +454,19 @@ Method in class com.google.gson.getDeclaringClass() -
Method in class com.google.gson.FieldAttributes
-
+
- getMapKeyAndValueTypes(Type, Class<?>) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns a two element array containing this map's key and value types in
+ positions 0 and 1 respectively.
- getName() -
Method in class com.google.gson.FieldAttributes
-
+
- getRawType(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
-
- getRawType() -
Method in class com.google.gson.reflect.TypeToken
-
- Gets the raw type.
+
- Returns the raw (non-generic) type for this type.
- getType() -
Method in class com.google.gson.reflect.TypeToken
- Gets underlying
Type
instance.
@@ -433,15 +486,21 @@ Constructor for class com.google.gson.has(String) -
Method in class com.google.gson.JsonObject
- Convenience method to check if a member with the specified name is present in this object.
+
- hashCode() -
+Method in class com.google.gson.JsonArray
+
-
- hashCode() -
Method in class com.google.gson.JsonNull
- All instances of JsonNull have the same hash code since they are indistinguishable
+
- hashCode() -
+Method in class com.google.gson.JsonObject
+
-
- hashCode() -
Method in class com.google.gson.JsonPrimitive
-
- hashCode() -
Method in class com.google.gson.reflect.TypeToken
-
- Hashcode for this object.
+
-
- hasModifier(int) -
Method in class com.google.gson.FieldAttributes
- Returns
true
if the field is defined with the modifier
.
@@ -457,15 +516,21 @@ Method in class com.google.gson.stream.InstanceCreator<T> - Interface in com.google.gson- This interface is implemented to create instances of a class that does not define a no-args
- constructor.
- isAssignableFrom(Class<?>) -
+ constructor.
- isArray(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns true if this type is an array.
+
- isAssignableFrom(Class<?>) -
Method in class com.google.gson.reflect.TypeToken
-
- Check if this type is assignable from the given class object.
+
- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
- isAssignableFrom(Type) -
Method in class com.google.gson.reflect.TypeToken
-
- Check if this type is assignable from the given Type.
+
- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
- isAssignableFrom(TypeToken<?>) -
Method in class com.google.gson.reflect.TypeToken
-
- Check if this type is assignable from the given type token.
+
- Deprecated. this implementation may be inconsistent with javac for types
+ with wildcards.
- isBoolean() -
Method in class com.google.gson.JsonPrimitive
- Check whether this primitive contains a boolean value.
@@ -547,7 +612,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.
@@ -607,6 +672,10 @@ Constructor for exception com.google.gson.stream.name(String) -
Method in class com.google.gson.stream.JsonWriter
- Encodes the property name.
+
- newParameterizedTypeWithOwner(Type, Type, Type...) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns a new parameterized type, applying
typeArguments
to
+ rawType
and enclosed by ownerType
.
- next() -
Method in class com.google.gson.JsonStreamParser
- Returns the next available
JsonElement
on the reader.
@@ -666,13 +735,19 @@ Method in class com.google.gson.stream.registerTypeAdapter(Type, Object) -
Method in class com.google.gson.GsonBuilder
- Configures Gson for custom serialization or deserialization.
+
- registerTypeHierarchyAdapter(Class<?>, Object) -
+Method in class com.google.gson.GsonBuilder
+
- Configures Gson for custom serialization or deserialization for an inheritance type hierarchy.
- remove(String) -
Method in class com.google.gson.JsonObject
- 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.
+ - resolve(Type, Class<?>, Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
-
@@ -756,6 +831,12 @@ Method in class com.google.gson.skipValue() -
Method in class com.google.gson.stream.JsonReader
- Skips the next value recursively.
+
- subtypeOf(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns a type that represents an unknown type that extends
bound
.
+ - supertypeOf(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
- Returns a type that represents an unknown supertype of
bound
.
@@ -804,14 +885,17 @@ Method in class com.google.gson.Returns a String representation of this element.
- toString() -
Method in class com.google.gson.reflect.TypeToken
-
- Returns a string representation of this object.
+
-
- toString() -
Method in class com.google.gson.stream.JsonReader
-
- 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
.
+ - TypeToken<T> - Class in com.google.gson.reflect
- Represents a generic type
T
. - typeToString(Type) -
+Static method in class com.google.gson.internal.$Gson$Types
+
-
+
U
@@ -848,18 +932,18 @@ Static method in enum com.google.gson.stream.values() -
Static method in enum com.google.gson.FieldNamingPolicy
- Returns an array containing the constants of this enum type, in
-the order they are declared.
+the order they're declared.
- values() -
Static method in enum com.google.gson.LongSerializationPolicy
- Returns an array containing the constants of this enum type, in
-the order they are declared.
+the order they're declared.
- values() -
Static method in enum com.google.gson.stream.JsonToken
- Returns an array containing the constants of this enum type, in
-the order they are declared.
+the order they're declared.
-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
@@ -912,6 +996,6 @@ the order they are declared.
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/index.html b/gson/docs/javadocs/index.html
index d40633ca..92a7caf5 100644
--- a/gson/docs/javadocs/index.html
+++ b/gson/docs/javadocs/index.html
@@ -2,10 +2,10 @@
-
+
-Gson 1.6 API
+Gson 1.7 API
@@ -26,7 +24,6 @@ function windowTitle()
-
@@ -82,7 +79,7 @@ function windowTitle()
-Gson 1.6 API
+Gson 1.7 API
@@ -101,6 +98,10 @@ Gson 1.6 API
This package provides annotations that can be used with Gson
.
+com.google.gson.internal
+Do NOT use any class in this package as they are meant for internal use in Gson.
+
+
com.google.gson.reflect
This package provides utility classes for finding type information for generic types.
@@ -165,6 +166,6 @@ Gson 1.6 API
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/overview-tree.html b/gson/docs/javadocs/overview-tree.html
index ed66be46..dc167ce1 100644
--- a/gson/docs/javadocs/overview-tree.html
+++ b/gson/docs/javadocs/overview-tree.html
@@ -2,22 +2,19 @@
-
+
-Class Hierarchy (Gson 1.6 API)
+Class Hierarchy (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -85,25 +81,25 @@ function windowTitle()
Hierarchy For All Packages
-- Package Hierarchies:
- com.google.gson, com.google.gson.annotations, com.google.gson.reflect, com.google.gson.stream
+- Package Hierarchies:
- com.google.gson, com.google.gson.annotations, com.google.gson.internal, com.google.gson.reflect, com.google.gson.stream
Class Hierarchy
-- java.lang.Object
-- com.google.gson.FieldAttributes
- com.google.gson.Gson
- com.google.gson.GsonBuilder
- com.google.gson.JsonElement
-- com.google.gson.JsonArray (implements java.lang.Iterable<T>)
+
- java.lang.Object
+- com.google.gson.internal.$Gson$Preconditions
- com.google.gson.internal.$Gson$Types
- com.google.gson.FieldAttributes
- com.google.gson.Gson
- com.google.gson.GsonBuilder
- com.google.gson.JsonElement
+- com.google.gson.JsonArray (implements java.lang.Iterable<T>)
- com.google.gson.JsonNull
- com.google.gson.JsonObject
- com.google.gson.JsonPrimitive
- - com.google.gson.JsonParser
- com.google.gson.stream.JsonReader (implements java.io.Closeable)
-
- com.google.gson.JsonStreamParser (implements java.util.Iterator<E>)
-
- com.google.gson.stream.JsonWriter (implements java.io.Closeable)
-
- java.lang.Throwable (implements java.io.Serializable)
+
- com.google.gson.JsonParser
- com.google.gson.stream.JsonReader (implements java.io.Closeable)
+
- com.google.gson.JsonStreamParser (implements java.util.Iterator<E>)
+
- com.google.gson.stream.JsonWriter (implements java.io.Closeable)
+
- java.lang.Throwable (implements java.io.Serializable)
-- java.lang.Exception
-- java.io.IOException
+- java.lang.Exception
+- java.io.IOException
- com.google.gson.stream.MalformedJsonException
- - java.lang.RuntimeException
+- java.lang.RuntimeException
- com.google.gson.JsonParseException
- com.google.gson.JsonIOException
- com.google.gson.JsonSyntaxException
@@ -120,19 +116,19 @@ Interface Hierarchy
Annotation Type Hierarchy
-- com.google.gson.annotations.SerializedName (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Expose (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Until (implements java.lang.annotation.Annotation)
-
- com.google.gson.annotations.Since (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Until (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Since (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.SerializedName (implements java.lang.annotation.Annotation)
+
- com.google.gson.annotations.Expose (implements java.lang.annotation.Annotation)
Enum Hierarchy
-- java.lang.Object
-- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
+
- java.lang.Object
+- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
-- com.google.gson.FieldNamingPolicy
- com.google.gson.LongSerializationPolicy
- com.google.gson.stream.JsonToken
+ - com.google.gson.LongSerializationPolicy
- com.google.gson.FieldNamingPolicy
- com.google.gson.stream.JsonToken
@@ -189,6 +185,6 @@ Enum Hierarchy
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/package-list b/gson/docs/javadocs/package-list
index cdd3c1da..f641bac3 100644
--- a/gson/docs/javadocs/package-list
+++ b/gson/docs/javadocs/package-list
@@ -1,4 +1,5 @@
com.google.gson
com.google.gson.annotations
+com.google.gson.internal
com.google.gson.reflect
com.google.gson.stream
diff --git a/gson/docs/javadocs/serialized-form.html b/gson/docs/javadocs/serialized-form.html
index d3ab7829..9bef3381 100644
--- a/gson/docs/javadocs/serialized-form.html
+++ b/gson/docs/javadocs/serialized-form.html
@@ -2,22 +2,19 @@
-
+
-Serialized Form (Gson 1.6 API)
+Serialized Form (Gson 1.7 API)
-
@@ -26,7 +23,6 @@ function windowTitle()
-
@@ -112,7 +108,7 @@ Serialized Form
-Class com.google.gson.JsonParseException extends RuntimeException implements Serializable
+Class com.google.gson.JsonParseException extends RuntimeException implements Serializable
@@ -148,7 +144,7 @@ Serialized Form
-Class com.google.gson.stream.MalformedJsonException extends IOException implements Serializable
+Class com.google.gson.stream.MalformedJsonException extends IOException implements Serializable
@@ -212,6 +208,6 @@ Serialized Form
-Copyright © 2008-2010. All Rights Reserved.
+Copyright © 2008-2011 Google, Inc.. All Rights Reserved.
diff --git a/gson/docs/javadocs/stylesheet.css b/gson/docs/javadocs/stylesheet.css
index 6ea9e516..6d31fdbc 100644
--- a/gson/docs/javadocs/stylesheet.css
+++ b/gson/docs/javadocs/stylesheet.css
@@ -3,27 +3,27 @@
/* Define colors, fonts and other style attributes here to override the defaults */
/* Page background color */
-body { background-color: #FFFFFF; color:#000000 }
+body { background-color: #FFFFFF }
/* Headings */
h1 { font-size: 145% }
/* Table colors */
-.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */
-.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */
-.TableRowColor { background: #FFFFFF; color:#000000 } /* White */
+.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
+.TableRowColor { background: #FFFFFF } /* White */
/* Font used in left-hand frame lists */
-.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
-.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
-.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 }
+.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif }
+.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif }
+.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif }
/* Navigation bar fonts and colors */
-.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */
-.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */
-.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;}
-.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;}
+.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
-.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
-.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000}
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}