Skip to main content
Previous sectionNext section

Stream Classes for Use with gzip Files

Stream Classes for Use with gzip Files

The %Stream package also defines the specialized stream classes %Stream.FileBinaryGzip and %Stream.FileCharacterGzip, which you can use to read and write to gzip files. These use the same interface described earlier. Note the following points:

  • For these classes, the Size property returns the uncompressed size. When you access the Size property, Caché reads the data in order to calculate the size of the file and this can be an expensive operation

  • When you access the Size property, Caché rewinds the stream and leaves you at its start.