Skip navigation links
A B C E F G H I J L M N O P R S T V 

A

adapter(Type) - Method in class com.squareup.moshi.Moshi
Returns a JSON adapter for type, creating it if necessary.
adapter(Class<T>) - Method in class com.squareup.moshi.Moshi
 
adapter(Type, Class<? extends Annotation>) - Method in class com.squareup.moshi.Moshi
 
adapter(Type, Set<? extends Annotation>) - Method in class com.squareup.moshi.Moshi
 
add(Type, JsonAdapter<T>) - Method in class com.squareup.moshi.Moshi.Builder
 
add(Type, Class<? extends Annotation>, JsonAdapter<T>) - Method in class com.squareup.moshi.Moshi.Builder
 
add(JsonAdapter.Factory) - Method in class com.squareup.moshi.Moshi.Builder
 
add(Object) - Method in class com.squareup.moshi.Moshi.Builder
 
arrayOf(Type) - Static method in class com.squareup.moshi.Types
Returns an array type whose elements are all instances of componentType.

B

beginArray() - Method in class com.squareup.moshi.JsonReader
Consumes the next token from the JSON stream and asserts that it is the beginning of a new array.
beginArray() - Method in class com.squareup.moshi.JsonWriter
Begins encoding a new array.
beginObject() - Method in class com.squareup.moshi.JsonReader
Consumes the next token from the JSON stream and asserts that it is the beginning of a new object.
beginObject() - Method in class com.squareup.moshi.JsonWriter
Begins encoding a new object.
build() - Method in class com.squareup.moshi.Moshi.Builder
 
Builder() - Constructor for class com.squareup.moshi.Moshi.Builder
 

C

collectionElementType(Type, Class<?>) - Static method in class com.squareup.moshi.Types
Returns the element type of this collection type.
com.squareup.moshi - package com.squareup.moshi
 
create(Type, Set<? extends Annotation>, Moshi) - Method in interface com.squareup.moshi.JsonAdapter.Factory
Attempts to create an adapter for type annotated with annotations.

E

endArray() - Method in class com.squareup.moshi.JsonReader
Consumes the next token from the JSON stream and asserts that it is the end of the current array.
endArray() - Method in class com.squareup.moshi.JsonWriter
Ends encoding the current array.
endObject() - Method in class com.squareup.moshi.JsonReader
Consumes the next token from the JSON stream and asserts that it is the end of the current object.
endObject() - Method in class com.squareup.moshi.JsonWriter
Ends encoding the current object.

F

failOnUnknown() - Method in class com.squareup.moshi.JsonAdapter
Returns a JSON adapter equal to this, but that throws a JsonDataException when unknown values are encountered.
failOnUnknown() - Method in class com.squareup.moshi.JsonReader
Returns true if this parser forbids skipping values.
FromJson - Annotation Type in com.squareup.moshi
 
fromJson(JsonReader) - Method in class com.squareup.moshi.JsonAdapter
 
fromJson(BufferedSource) - Method in class com.squareup.moshi.JsonAdapter
 
fromJson(String) - Method in class com.squareup.moshi.JsonAdapter
 
fromJsonValue(Object) - Method in class com.squareup.moshi.JsonAdapter
Decodes a Java value object from value, which must be comprised of maps, lists, strings, numbers, booleans and nulls.

G

getIndent() - Method in class com.squareup.moshi.JsonWriter
Returns a string containing only whitespace, used for each level of indentation.
getPath() - Method in class com.squareup.moshi.JsonReader
Returns a JsonPath to the current location in the JSON value.
getPath() - Method in class com.squareup.moshi.JsonWriter
Returns a JsonPath to the current location in the JSON value.
getRawType(Type) - Static method in class com.squareup.moshi.Types
 
getSerializeNulls() - Method in class com.squareup.moshi.JsonWriter
Returns true if object members are serialized when their value is null.

H

hasNext() - Method in class com.squareup.moshi.JsonReader
Returns true if the current array or object has another element.

I

indent(String) - Method in class com.squareup.moshi.JsonAdapter
Return a JSON adapter equal to this, but using indent to control how the result is formatted.
isLenient() - Method in class com.squareup.moshi.JsonReader
Returns true if this parser is liberal in what it accepts.
isLenient() - Method in class com.squareup.moshi.JsonWriter
Returns true if this writer has relaxed syntax rules.

J

Json - Annotation Type in com.squareup.moshi
Customizes how a field is encoded as JSON.
JsonAdapter<T> - Class in com.squareup.moshi
Converts Java values to JSON, and JSON values to Java.
JsonAdapter() - Constructor for class com.squareup.moshi.JsonAdapter
 
JsonAdapter.Factory - Interface in com.squareup.moshi
 
JsonDataException - Exception in com.squareup.moshi
Thrown when the data in a JSON document doesn't match the data expected by the caller.
JsonDataException() - Constructor for exception com.squareup.moshi.JsonDataException
 
JsonDataException(String) - Constructor for exception com.squareup.moshi.JsonDataException
 
JsonDataException(Throwable) - Constructor for exception com.squareup.moshi.JsonDataException
 
JsonDataException(String, Throwable) - Constructor for exception com.squareup.moshi.JsonDataException
 
JsonEncodingException - Exception in com.squareup.moshi
Thrown when the data being parsed is not encoded as valid JSON.
JsonEncodingException(String) - Constructor for exception com.squareup.moshi.JsonEncodingException
 
JsonQualifier - Annotation Type in com.squareup.moshi
Annotates another annotation, causing it to specialize how values are encoded and decoded.
JsonReader - Class in com.squareup.moshi
Reads a JSON (RFC 7159) encoded value as a stream of tokens.
JsonReader.Options - Class in com.squareup.moshi
JsonReader.Token - Enum in com.squareup.moshi
A structure, name, or value type in a JSON-encoded string.
JsonWriter - Class in com.squareup.moshi
Writes a JSON (RFC 7159) encoded value to a stream, one token at a time.

L

lenient() - Method in class com.squareup.moshi.JsonAdapter
Returns a JSON adapter equal to this, but is lenient when reading and writing.

M

Moshi - Class in com.squareup.moshi
Coordinates binding between JSON values and Java objects.
Moshi.Builder - Class in com.squareup.moshi
 

N

name(String) - Method in class com.squareup.moshi.JsonWriter
Encodes the property name.
newBuilder() - Method in class com.squareup.moshi.Moshi
Returns a new builder containing all custom factories used by the current instance.
newParameterizedType(Type, Type...) - Static method in class com.squareup.moshi.Types
Returns a new parameterized type, applying typeArguments to rawType.
newParameterizedTypeWithOwner(Type, Type, Type...) - Static method in class com.squareup.moshi.Types
Returns a new parameterized type, applying typeArguments to rawType.
nextAdapter(JsonAdapter.Factory, Type, Set<? extends Annotation>) - Method in class com.squareup.moshi.Moshi
 
nextAnnotations(Set<? extends Annotation>, Class<? extends Annotation>) - Static method in class com.squareup.moshi.Types
Checks if annotations contains jsonQualifier.
nextBoolean() - Method in class com.squareup.moshi.JsonReader
Returns the boolean value of the next token, consuming it.
nextDouble() - Method in class com.squareup.moshi.JsonReader
Returns the double value of the next token, consuming it.
nextInt() - Method in class com.squareup.moshi.JsonReader
Returns the int value of the next token, consuming it.
nextLong() - Method in class com.squareup.moshi.JsonReader
Returns the long value of the next token, consuming it.
nextName() - Method in class com.squareup.moshi.JsonReader
Returns the next token, a property name, and consumes it.
nextNull() - Method in class com.squareup.moshi.JsonReader
Consumes the next token from the JSON stream and asserts that it is a literal null.
nextString() - Method in class com.squareup.moshi.JsonReader
Returns the string value of the next token, consuming it.
nullSafe() - Method in class com.squareup.moshi.JsonAdapter
Returns a JSON adapter equal to this JSON adapter, but with support for reading and writing nulls.
nullValue() - Method in class com.squareup.moshi.JsonWriter
Encodes null.

O

of(BufferedSource) - Static method in class com.squareup.moshi.JsonReader
Returns a new instance that reads UTF-8 encoded JSON from source.
of(String...) - Static method in class com.squareup.moshi.JsonReader.Options
 
of(BufferedSink) - Static method in class com.squareup.moshi.JsonWriter
Returns a new instance that writes UTF-8 encoded JSON to sink.

P

peek() - Method in class com.squareup.moshi.JsonReader
Returns the type of the next token without consuming it.

R

readJsonValue() - Method in class com.squareup.moshi.JsonReader
Returns the value of the next token, consuming it.

S

selectName(JsonReader.Options) - Method in class com.squareup.moshi.JsonReader
If the next token is a property name that's in options, this consumes it and returns its index.
selectString(JsonReader.Options) - Method in class com.squareup.moshi.JsonReader
If the next token is a string that's in options, this consumes it and returns its index.
serializeNulls() - Method in class com.squareup.moshi.JsonAdapter
Returns a JSON adapter equal to this JSON adapter, but that serializes nulls when encoding JSON.
setFailOnUnknown(boolean) - Method in class com.squareup.moshi.JsonReader
Configure whether this parser throws a JsonDataException when JsonReader.skipValue() is called.
setIndent(String) - Method in class com.squareup.moshi.JsonWriter
Sets the indentation string to be repeated for each level of indentation in the encoded document.
setLenient(boolean) - Method in class com.squareup.moshi.JsonReader
Configure this parser to be liberal in what it accepts.
setLenient(boolean) - Method in class com.squareup.moshi.JsonWriter
Configure this writer to relax its syntax rules.
setSerializeNulls(boolean) - Method in class com.squareup.moshi.JsonWriter
Sets whether object members are serialized when their value is null.
skipValue() - Method in class com.squareup.moshi.JsonReader
Skips the next value recursively.
subtypeOf(Type) - Static method in class com.squareup.moshi.Types
Returns a type that represents an unknown type that extends bound.
supertypeOf(Type) - Static method in class com.squareup.moshi.Types
Returns a type that represents an unknown supertype of bound.

T

toJson(JsonWriter, T) - Method in class com.squareup.moshi.JsonAdapter
 
toJson(BufferedSink, T) - Method in class com.squareup.moshi.JsonAdapter
 
toJson(T) - Method in class com.squareup.moshi.JsonAdapter
 
ToJson - Annotation Type in com.squareup.moshi
 
toJsonValue(T) - Method in class com.squareup.moshi.JsonAdapter
Encodes value as a Java value object comprised of maps, lists, strings, numbers, booleans, and nulls.
Types - Class in com.squareup.moshi
Factory methods for types.

V

value(String) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
value(boolean) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
value(Boolean) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
value(double) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
value(long) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
value(Number) - Method in class com.squareup.moshi.JsonWriter
Encodes value.
valueOf(String) - Static method in enum com.squareup.moshi.JsonReader.Token
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.squareup.moshi.JsonReader.Token
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E F G H I J L M N O P R S T V 
Skip navigation links

Copyright © 2017. All Rights Reserved.