Package io.sentry

Class JsonObjectReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    @Internal
    public final class JsonObjectReader
    extends JsonReader
    • Constructor Detail

      • JsonObjectReader

        public JsonObjectReader​(java.io.Reader in)
    • 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.IOException
        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:
        java.io.IOException