Class JsonValueReader<T>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable, java.util.function.Supplier<javax.json.JsonStructure>

    public class JsonValueReader<T>
    extends java.io.Reader
    implements java.util.function.Supplier<javax.json.JsonStructure>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.ByteArrayInputStream fallbackDelegate  
      private javax.json.JsonStructure input  
      private T result  
      • Fields inherited from class java.io.Reader

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonValueReader​(javax.json.JsonStructure input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()  
      javax.json.JsonStructure get()  
      javax.json.JsonStructure getInput()
      Deprecated.
      T getResult()
      Deprecated.
      int read​(char[] cbuf, int off, int len)  
      void setResult​(T result)
      Deprecated.
      • Methods inherited from class java.io.Reader

        mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • input

        private final javax.json.JsonStructure input
      • fallbackDelegate

        private java.io.ByteArrayInputStream fallbackDelegate
      • result

        private T result
    • Constructor Detail

      • JsonValueReader

        public JsonValueReader​(javax.json.JsonStructure input)
    • Method Detail

      • read

        public int read​(char[] cbuf,
                        int off,
                        int len)
        Specified by:
        read in class java.io.Reader
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Reader
        Throws:
        java.io.IOException
      • get

        public javax.json.JsonStructure get()
        Specified by:
        get in interface java.util.function.Supplier<T>
      • getInput

        @Deprecated
        public javax.json.JsonStructure getInput()
        Deprecated.
      • getResult

        @Deprecated
        public T getResult()
        Deprecated.
      • setResult

        @Deprecated
        public void setResult​(T result)
        Deprecated.