code: public static boolean write(final InputStream sourceInputStream,
      final OutputStream destinationOutputStream) throws IOException {
  
      byte[] buffer = buildBuffer(BUFFER_SIZE);
      for (int len = 0; (len = sourceInputStream.read(buffer)) != -1;) {
        destinationOutputStream.write(buffer, 0, len);
      }
      destinationOutputStream.flush();
      return true;
    }
docs: Write source input stream bytes into destination output stream.
  
  @param sourceInputStream input stream to be handled.
  @param destinationOutputStream output stream to be handled.
  @return true if write source input stream bytes into destination output
  stream success; false otherwise.
  @throws IOException