refactoring of io.GZIPCompressor