ComponentOne Zip for .NET
C1ZStreamReader Class
Members  Example 

C1.C1Zip.4 Assembly > C1.C1Zip Namespace : C1ZStreamReader Class
Decompresses data from .NET streams.
Object Model
C1ZStreamReader ClassZStream Class
Public Class C1ZStreamReader 
   Inherits System.IO.Stream
public class C1ZStreamReader : System.IO.Stream 

To decompress data from a compressed stream, create a C1ZStreamReader object passing the compressed stream to the C1ZStreamReader constructor.

Then read the data from the C1ZStreamReader using the Read method, or create a System.IO.StreamReader on the C1ZStreamReader. The second option is indicated when you want to read formatted data.

The code below decompresses a string that was stored into a memory stream object:
public string ExpandString(byte[] buffer)
	// turn buffer into a memory stream
	var ms = new MemoryStream(buffer);
	// attach decompressor stream to memory stream
	var sr = new C1ZStreamReader(ms);
	// read uncompressed data
	var reader = new StreamReader(sr);
	return reader.ReadToEnd();
Inheritance Hierarchy


See Also


C1ZStreamReader Members
C1.C1Zip Namespace