C# Class ICSharpCode.SharpZipLib.GZip.GZipOutputStream

This filter stream is used to compress a stream into a "GZIP" stream. The "GZIP" format is described in RFC 1952. author of the original java version : John Leuner
Inheritance: ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream
显示文件 Open project: icsharpcode/SharpZipLib Class Usage Examples

Protected Properties

Property Type Description
crc ICSharpCode.SharpZipLib.Checksum.Crc32

Public Methods

Method Description
Finish ( ) : void

Finish compression and write any footer information required to stream

GZipOutputStream ( Stream baseOutputStream ) : System

Creates a GzipOutputStream with the default buffer size

GZipOutputStream ( Stream baseOutputStream, int size ) : System

Creates a GZipOutputStream with the specified buffer size

GetLevel ( ) : int

Get the current compression level.

SetLevel ( int level ) : void

Sets the active compression level (1-9). The new level will be activated immediately.

Write ( byte buffer, int offset, int count ) : void

Write given buffer to output updating crc

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Writes remaining compressed output data to the output stream and closes it.

WriteHeader ( ) : void

Method Details

Dispose() protected method

Writes remaining compressed output data to the output stream and closes it.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Finish() public method

Finish compression and write any footer information required to stream
public Finish ( ) : void
return void

GZipOutputStream() public method

Creates a GzipOutputStream with the default buffer size
public GZipOutputStream ( Stream baseOutputStream ) : System
baseOutputStream Stream /// The stream to read data (to be compressed) from ///
return System

GZipOutputStream() public method

Creates a GZipOutputStream with the specified buffer size
public GZipOutputStream ( Stream baseOutputStream, int size ) : System
baseOutputStream Stream /// The stream to read data (to be compressed) from ///
size int /// Size of the buffer to use ///
return System

GetLevel() public method

Get the current compression level.
public GetLevel ( ) : int
return int

SetLevel() public method

Sets the active compression level (1-9). The new level will be activated immediately.
/// Level specified is not supported. ///
public SetLevel ( int level ) : void
level int The compression level to set.
return void

Write() public method

Write given buffer to output updating crc
public Write ( byte buffer, int offset, int count ) : void
buffer byte Buffer to write
offset int Offset of first byte in buf to write
count int Number of bytes to write
return void

WriteHeader() protected method

protected WriteHeader ( ) : void
return void

Property Details

crc protected_oe property

CRC-32 value for uncompressed data
protected Crc32,ICSharpCode.SharpZipLib.Checksum crc
return ICSharpCode.SharpZipLib.Checksum.Crc32