code: public static void copyPartialContent(InputStream in, OutputStream out, Range r) throws IOException {
      IOUtils.copyLarge(in, out, r.start, r.length);
    }
docs: Copies the given range of bytes from the input stream to the output stream.
  
  @param in
  @param out
  @param r
  @throws IOException