code: public static void copyStreamAndClose(InputStream is, OutputStream os) throws IOException {
          copyStreamAndClose(is, os, DEFAULT_BUFFER_SIZE);
      }
docs: Copy input stream to output stream and close them both
  
  @param is input stream
  @param os output stream
  @throws IOException for any error