Class StreamChunkCreator


  • public class StreamChunkCreator
    extends Object
    • Constructor Detail

      • StreamChunkCreator

        public StreamChunkCreator​(InputStream stream,
                                  long contentLength,
                                  long chunkLength)
    • Method Detail

      • supportsParallelReads

        public boolean supportsParallelReads()
        Test for whether or not the input stream can be read in parallel.

        If this returns true, then streams returned by next() are safe to be read from in parallel. If this returns false, then streams returned by next() must be read from serially.

        Returns:
        true if parallel reads could be enabled, false if they could not.
      • hasMore

        public boolean hasMore()
        Test for whether or not there are any more chunks that can be created.
        Returns:
        true if there are additional chunks, false if all done