protected void preWriteRecordTasks ( ) throws IOException { if ( this . out == null ) { createFile ( ) ; } if ( settings . getCompress ( ) ) { // Wrap stream in GZIP Writer. // The below construction immediately writes the GZIP 'default' // header out on the underlying stream. this . out = new CompressedStream ( this . out ) ; } }
Post write tasks .