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
Afficher le fichier Open project: icsharpcode/SharpZipLib Class Usage Examples

Protected Properties

Свойство Type Description
crc ICSharpCode.SharpZipLib.Checksum.Crc32

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

WriteHeader ( ) : void

Method Details

Dispose() protected méthode

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

Finish() public méthode

Finish compression and write any footer information required to stream
public Finish ( ) : void
Résultat void

GZipOutputStream() public méthode

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

GZipOutputStream() public méthode

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 ///
Résultat System

GetLevel() public méthode

Get the current compression level.
public GetLevel ( ) : int
Résultat int

SetLevel() public méthode

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.
Résultat void

Write() public méthode

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
Résultat void

WriteHeader() protected méthode

protected WriteHeader ( ) : void
Résultat void

Property Details

crc protected_oe property

CRC-32 value for uncompressed data
protected Crc32,ICSharpCode.SharpZipLib.Checksum crc
Résultat ICSharpCode.SharpZipLib.Checksum.Crc32