Class AbstractSeekableStreamHandle<L extends Location>

    • Constructor Detail

      • AbstractSeekableStreamHandle

        public AbstractSeekableStreamHandle()
    • Method Detail

      • recreateStreamFromPos

        protected abstract void recreateStreamFromPos​(long pos)
                                               throws IOException
        Recreates the internal input stream available through StreamHandle.in(), so that it starts from the specified position.
        Parameters:
        pos -
        Throws:
        IOException
      • recreatePossible

        protected abstract boolean recreatePossible()
                                             throws IOException
        In some implementations of this class, the ability to recreate the stream depends on external factors (e.g. server support). This influences a
        Returns:
        if recreate is actually possible.
        Throws:
        IOException
      • setJumpCutoff

        protected void setJumpCutoff​(long jumpCutoff)
        Sets the maximum of bytes which are read from the stream when seeking forward. Any larger number will result in a call to recreateStreamFromPos(long).