[Overview][Types][Classes][Index] | Reference for unit 'ZStream' (#fcl)

# TGZFileStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Stream to read/write from a gzip file.

## Declaration

Source position: zstream.pp line 88

`type TGZFileStream = class(TStream)`
`public`
`constructor create();` |  | Create a new instance of TGZFileStream
`function read(); override;` |  | Read data from the compressed file
`function write(); override;` |  | Write data to be compressed
`function seek(); override;` |  | Set the position in the compressed stream.
`destructor destroy; override;` |  | Removes TGZFileStream instance
`end;`

## Inheritance

`TGZFileStream` |  | Stream to read/write from a gzip file.
`TStream`
`TObject`

## Description

TGZFileStream can be used to read data from a gzip file, or to write data to a gzip file.

## See also

TCompressionStream |  | Write-only stream class which compresses data written to it.
TDeCompressionStream |  | Reads and decompresses data from a compressed data stream.