RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TZDecompressionStream Class

Decompresses data that was written to a TZCompressionStream object.

Pascal
TZDecompressionStream = class(TCustomZStream);
C++
class TZDecompressionStream : public TCustomZStream;

TZDecompressionStream is the analog of the TCompressionStream class. It is a read-only, unidirectional stream; you can seek forward in the stream, but not backwards. A separate input stream provides the source data. The input stream will be a stream that was previously written to using a TCompressionStream object. The input stream is passed to the constructor, however, TZDecompressionStream does not take ownership of this object. You are responsible for creating, initializing, and destroying the input stream when it is no longer needed. 

Writing to the stream will raise an exception, as will requesting the size of the stream, and attempting to perform a Seek operation backwards or relative to the current position. 

The TZDecompressionStream object's OnProgress event is called when a block of data is read from the input stream. You can read the TZDecompressionStream object's Position property to determine the number of raw, uncompressed bytes that have been read from the input stream so far. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!