Package io.sentry
Class JsonObjectReader
java.lang.Object
io.sentry.vendor.gson.stream.JsonReader
io.sentry.JsonObjectReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Date
dateOrNull
(@Nullable String dateString, ILogger logger) @Nullable Boolean
@Nullable Date
nextDateOrNull
(ILogger logger) @Nullable Double
@NotNull Float
@Nullable Float
@Nullable Integer
<T> @Nullable List<T>
nextListOrNull
(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) @Nullable Long
nextMapOfListOrNull
(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) nextMapOrNull
(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) @Nullable Object
Decodes JSON into Java primitives/objects (null, boolean, int, long, double, String, Map, List) with full nesting support.<T> T
nextOrNull
(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) @Nullable String
@Nullable TimeZone
nextTimeZoneOrNull
(ILogger logger) void
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
-
Constructor Details
-
JsonObjectReader
-
-
Method Details
-
nextStringOrNull
- Throws:
IOException
-
nextDoubleOrNull
- Throws:
IOException
-
nextFloatOrNull
- Throws:
IOException
-
nextFloat
- Throws:
IOException
-
nextLongOrNull
- Throws:
IOException
-
nextIntegerOrNull
- Throws:
IOException
-
nextBooleanOrNull
- Throws:
IOException
-
nextUnknown
-
nextListOrNull
@Nullable public <T> @Nullable List<T> nextListOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Throws:
IOException
-
nextMapOrNull
@Nullable public <T> @Nullable Map<String,T> nextMapOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Throws:
IOException
-
nextMapOfListOrNull
@Nullable public <T> @Nullable Map<String,List<T>> nextMapOfListOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Throws:
IOException
-
nextOrNull
@Nullable public <T> T nextOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws Exception - Throws:
Exception
-
nextDateOrNull
- Throws:
IOException
-
dateOrNull
-
nextTimeZoneOrNull
- Throws:
IOException
-
nextObjectOrNull
Decodes 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:
IOException
-