public final void useCompression(final boolean useCompression1){
  this.useCompression=Boolean.valueOf(useCompression1);
}

public final void useCompression ( final boolean useCompression1 ) { this . useCompression = Boolean . valueOf ( useCompression1 ) ; }
sets whether the file should be gzip - compressed or not . must be set before the file is opened for writing . if not set explicitly , the usage of compression is defined by the ending of the filename .
