Interface JSONReader

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, java.util.Iterator<JSONToken>

    public interface JSONReader
    extends java.util.Iterator<JSONToken>, java.io.Closeable
    Reads a stream of JSONToken instances from an underlying character stream, using the Iterator pattern.
    Author:
    cdivilly
    • Method Detail

      • hasNext

        boolean hasNext()
                 throws JSONIOException
        Indicates if there any more JSONTokens in the stream.
        Specified by:
        hasNext in interface java.util.Iterator<JSONToken>
        Returns:
        true if there are more tokens, false if the end of the stream has been reached
        Throws:
        JSONIOException - if an IOException is raised by the underlying stream
      • remove

        @Deprecated
        void remove()
             throws java.lang.IllegalStateException
        Deprecated.
        This operation is not supported on JSONReader instances.
        Specified by:
        remove in interface java.util.Iterator<JSONToken>
        Throws:
        java.lang.IllegalStateException - if this method is invoked