Skip to main content

Stream Classes for Use with gzip Files

Stream Classes for Use with gzip Files

The %StreamOpens in a new tab package also defines the specialized stream classes %Stream.FileBinaryGzipOpens in a new tab and %Stream.FileCharacterGzipOpens in a new tab, 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.

FeedbackOpens in a new tab