code: protected void postWriteRecordTasks()
      throws IOException {
          if (settings.getCompress()) {
              CompressedStream o = (CompressedStream)this.out;
              o.finish();
              o.flush();
              o.end();
              this.out = o.getWrappedStream();
          }
      }
docs: Post file write tasks.
  If compressed, finishes up compression and flushes stream so any
  subsequent checks get good reading.
  
  @exception IOException