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