IOUtils { public static void copyPartial(InputStream inputStream, long length, OutputStream outputStream) throws IOException { copyPartial(inputStream, 0, length, outputStream); }  static void copyPartial(InputStream inputStream, long length, OutputStream outputStream); static void copyPartial(InputStream inputStream, long fromOffset, long length, OutputStream outputStream);  }
@Test public void testCopyPartial() throws IOException { testCopyPartialHelper(1024, 0, 512); }