docs: public static void write(byte[] data, OutputStream output) throws IOException {
          ByteArrayInputStream input = null;
          try {
              input = new ByteArrayInputStream(data);
              copy(input, output);
              output.flush();
          } finally {
              IOUtils.closeQuietly(output);
          }
      }