C# Класс 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
Наследование: ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
crc ICSharpCode.SharpZipLib.Checksum.Crc32

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

WriteHeader ( ) : void

Описание методов

Dispose() защищенный Метод

Writes remaining compressed output data to the output stream and closes it.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Finish() публичный Метод

Finish compression and write any footer information required to stream
public Finish ( ) : void
Результат void

GZipOutputStream() публичный Метод

Creates a GzipOutputStream with the default buffer size
public GZipOutputStream ( Stream baseOutputStream ) : System
baseOutputStream Stream /// The stream to read data (to be compressed) from ///
Результат System

GZipOutputStream() публичный Метод

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 ///
Результат System

GetLevel() публичный Метод

Get the current compression level.
public GetLevel ( ) : int
Результат int

SetLevel() публичный Метод

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.
Результат void

Write() публичный Метод

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
Результат void

WriteHeader() защищенный Метод

protected WriteHeader ( ) : void
Результат void

Описание свойств

crc защищенное свойство

CRC-32 value for uncompressed data
protected Crc32,ICSharpCode.SharpZipLib.Checksum crc
Результат ICSharpCode.SharpZipLib.Checksum.Crc32