code: public static SeekableSource inMemorySeekableSourceFrom(InputStream stream) throws IOException {
          requireNonNull(stream);
          return new ByteArraySeekableSource(IOUtils.toByteArray(stream));
      }
docs: Factory method to create a {@link SeekableSource} from a {@link InputStream}. The whole stream is read an stored in a byte array with a max size of 2GB.
  
  @param stream
  @return a {@link SeekableSource} from the given stream.
  @throws IOException