Package io.sentry
Class JsonObjectReader
java.lang.Object
io.sentry.JsonObjectReader
- All Implemented Interfaces:
ObjectReader,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()voidendArray()voidbooleanhasNext()boolean@Nullable Boolean@Nullable DatenextDateOrNull(ILogger logger) double@Nullable Doublefloat@Nullable FloatintnextInt()@Nullable Integer<T> @Nullable List<T>nextListOrNull(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) longnextLong()@Nullable LongnextMapOfListOrNull(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) nextMapOrNull(@NotNull ILogger logger, @NotNull JsonDeserializer<T> deserializer) @NotNull StringnextName()voidnextNull()@Nullable ObjectDecodes 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 String@Nullable TimeZonenextTimeZoneOrNull(ILogger logger) void@NotNull JsonTokenpeek()voidsetLenient(boolean lenient) void
-
Constructor Details
-
JsonObjectReader
-
-
Method Details
-
nextStringOrNull
- Specified by:
nextStringOrNullin interfaceObjectReader- Throws:
IOException
-
nextDoubleOrNull
- Specified by:
nextDoubleOrNullin interfaceObjectReader- Throws:
IOException
-
nextFloatOrNull
- Specified by:
nextFloatOrNullin interfaceObjectReader- Throws:
IOException
-
nextFloat
- Specified by:
nextFloatin interfaceObjectReader- Throws:
IOException
-
nextLongOrNull
- Specified by:
nextLongOrNullin interfaceObjectReader- Throws:
IOException
-
nextIntegerOrNull
- Specified by:
nextIntegerOrNullin interfaceObjectReader- Throws:
IOException
-
nextBooleanOrNull
- Specified by:
nextBooleanOrNullin interfaceObjectReader- Throws:
IOException
-
nextUnknown
- Specified by:
nextUnknownin interfaceObjectReader
-
nextListOrNull
@Nullable public <T> @Nullable List<T> nextListOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Specified by:
nextListOrNullin interfaceObjectReader- Throws:
IOException
-
nextMapOrNull
@Nullable public <T> @Nullable Map<String,T> nextMapOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Specified by:
nextMapOrNullin interfaceObjectReader- Throws:
IOException
-
nextMapOfListOrNull
@Nullable public <T> @Nullable Map<String,List<T>> nextMapOfListOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws IOException - Specified by:
nextMapOfListOrNullin interfaceObjectReader- Throws:
IOException
-
nextOrNull
@Nullable public <T> T nextOrNull(@NotNull @NotNull ILogger logger, @NotNull @NotNull JsonDeserializer<T> deserializer) throws Exception - Specified by:
nextOrNullin interfaceObjectReader- Throws:
Exception
-
nextDateOrNull
- Specified by:
nextDateOrNullin interfaceObjectReader- Throws:
IOException
-
nextTimeZoneOrNull
- Specified by:
nextTimeZoneOrNullin interfaceObjectReader- 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()`.- Specified by:
nextObjectOrNullin interfaceObjectReader- Returns:
- The deserialized object from json.
- Throws:
IOException
-
peek
- Specified by:
peekin interfaceObjectReader- Throws:
IOException
-
nextName
- Specified by:
nextNamein interfaceObjectReader- Throws:
IOException
-
beginObject
- Specified by:
beginObjectin interfaceObjectReader- Throws:
IOException
-
endObject
- Specified by:
endObjectin interfaceObjectReader- Throws:
IOException
-
beginArray
- Specified by:
beginArrayin interfaceObjectReader- Throws:
IOException
-
endArray
- Specified by:
endArrayin interfaceObjectReader- Throws:
IOException
-
hasNext
- Specified by:
hasNextin interfaceObjectReader- Throws:
IOException
-
nextInt
- Specified by:
nextIntin interfaceObjectReader- Throws:
IOException
-
nextLong
- Specified by:
nextLongin interfaceObjectReader- Throws:
IOException
-
nextString
- Specified by:
nextStringin interfaceObjectReader- Throws:
IOException
-
nextBoolean
- Specified by:
nextBooleanin interfaceObjectReader- Throws:
IOException
-
nextDouble
- Specified by:
nextDoublein interfaceObjectReader- Throws:
IOException
-
nextNull
- Specified by:
nextNullin interfaceObjectReader- Throws:
IOException
-
setLenient
public void setLenient(boolean lenient) - Specified by:
setLenientin interfaceObjectReader
-
skipValue
- Specified by:
skipValuein interfaceObjectReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-