code: public static void write(byte[] data, OutputStream os, boolean closeSink) {
          try {
              os.write(data);
          } catch (IOException e) {
              throw E.ioException(e);
          } finally {
              if (closeSink) {
                  close(os);
              }
          }
      }
docs: Write binary data to an outputstream.
  
  @param data
  the binary data to write
  @param os
  the output stream
  @param closeSink
  if `true` then close the output stream once finished writing