Package io.sentry
Class JsonObjectReader
- java.lang.Object
-
- io.sentry.vendor.gson.stream.JsonReader
-
- io.sentry.JsonObjectReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
@Internal public final class JsonObjectReader extends JsonReader
-
-
Constructor Summary
Constructors Constructor Description JsonObjectReader(java.io.Reader in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.BooleannextBooleanOrNull()@Nullable java.util.DatenextDateOrNull(ILogger logger)@Nullable java.lang.DoublenextDoubleOrNull()@NotNull java.lang.FloatnextFloat()@Nullable java.lang.FloatnextFloatOrNull()@Nullable java.lang.IntegernextIntegerOrNull()<T> @Nullable java.util.List<T>nextList(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer)@Nullable java.lang.LongnextLongOrNull()@Nullable java.lang.ObjectnextObjectOrNull()Decodes JSON into Java primitives/objects (null, boolean, int, long, double, String, Map, List) with full nesting support.<T> TnextOrNull(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer)@Nullable java.lang.StringnextStringOrNull()@Nullable java.util.TimeZonenextTimeZoneOrNull(ILogger logger)voidnextUnknown(ILogger logger, java.util.Map<java.lang.String,java.lang.Object> unknown, java.lang.String name)-
Methods inherited from class io.sentry.vendor.gson.stream.JsonReader
beginArray, beginObject, close, endArray, endObject, getPath, hasNext, isLenient, nextBoolean, nextDouble, nextInt, nextLong, nextName, nextNull, nextString, peek, setLenient, skipValue, toString
-
-
-
-
Method Detail
-
nextStringOrNull
@Nullable public @Nullable java.lang.String nextStringOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextDoubleOrNull
@Nullable public @Nullable java.lang.Double nextDoubleOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextFloatOrNull
@Nullable public @Nullable java.lang.Float nextFloatOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextFloat
@NotNull public @NotNull java.lang.Float nextFloat() throws java.io.IOException- Throws:
java.io.IOException
-
nextLongOrNull
@Nullable public @Nullable java.lang.Long nextLongOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextIntegerOrNull
@Nullable public @Nullable java.lang.Integer nextIntegerOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextBooleanOrNull
@Nullable public @Nullable java.lang.Boolean nextBooleanOrNull() throws java.io.IOException- Throws:
java.io.IOException
-
nextUnknown
public void nextUnknown(ILogger logger, java.util.Map<java.lang.String,java.lang.Object> unknown, java.lang.String name)
-
nextList
@Nullable public <T> @Nullable java.util.List<T> nextList(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws java.io.IOException- Throws:
java.io.IOException
-
nextOrNull
@Nullable public <T> T nextOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws java.lang.Exception- Throws:
java.lang.Exception
-
nextDateOrNull
@Nullable public @Nullable java.util.Date nextDateOrNull(ILogger logger) throws java.io.IOException
- Throws:
java.io.IOException
-
nextTimeZoneOrNull
@Nullable public @Nullable java.util.TimeZone nextTimeZoneOrNull(ILogger logger) throws java.io.IOException
- Throws:
java.io.IOException
-
nextObjectOrNull
@Nullable public @Nullable java.lang.Object nextObjectOrNull() throws java.io.IOExceptionDecodes JSON into Java primitives/objects (null, boolean, int, long, double, String, Map, List) with full nesting support. To be used at the root level or after calling `nextName()`.- Returns:
- The deserialized object from json.
- Throws:
java.io.IOException
-
-