@Override
    public void write(byte[] b, int off, int len) throws IOException {
      out.write(b, off, len);
      bytesWritten += len;
    }
Flushes any buffered data and closes the file.
hbase-it/src/test/java/org/apache/hadoop/hbase/test/util/warc/WARCFileWriter.java