Interface ReaderInterceptor

    • Method Detail

      • process

        void process​(Reader reader,
                     Consumer<StreamElement> streamElementListener,
                     ReaderInterceptorChain chain)
              throws Exception
        Processes
        Parameters:
        reader - The reader from which the stream is read.
        streamElementListener - Listens for stream elements being read from the reader.
        chain - The reader chain, which allows to proceed to the next interceptor.
        Throws:
        Exception - Any exception happening during interception.