Class AbstractChunkedReadvResponse

    • Constructor Detail

      • AbstractChunkedReadvResponse

        public AbstractChunkedReadvResponse​(ReadVRequest request,
                                            int maxFrameSize)
    • Method Detail

      • nextChunk

        public ReadVResponse nextChunk​(io.netty.buffer.ByteBufAllocator alloc)
                                throws java.lang.Exception
        Description copied from interface: ChunkedResponse
        Fetches a chunk from the stream.
        Specified by:
        nextChunk in interface ChunkedResponse
        Returns:
        the fetched chunk
        Throws:
        java.lang.Exception
      • isEndOfInput

        public boolean isEndOfInput()
                             throws java.lang.Exception
        Description copied from interface: ChunkedResponse
        Return true if and only if there is no data left in the stream and the stream has reached its end.
        Specified by:
        isEndOfInput in interface ChunkedResponse
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Description copied from interface: ChunkedResponse
        Releases the resources associated with the stream.
        Specified by:
        close in interface ChunkedResponse
        Throws:
        java.lang.Exception
      • read

        protected abstract io.netty.buffer.ByteBuf read​(io.netty.buffer.ByteBufAllocator alloc,
                                                        int fd,
                                                        long position,
                                                        int length)
                                                 throws java.io.IOException,
                                                        XrootdException
        Throws:
        java.io.IOException
        XrootdException