C# Class ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream

Inheritance: Stream
Afficher le fichier Open project: icsharpcode/SharpZipLib Class Usage Examples

Protected Properties

Свойство Type Description
csize long
inf ICSharpCode.SharpZipLib.Zip.Compression.Inflater
inputBuffer InflaterInputBuffer

Méthodes publiques

Méthode Description
Flush ( ) : void

Flushes the baseInputStream

InflaterInputStream ( Stream baseInputStream ) : System

Create an InflaterInputStream with the default decompressor and a default buffer size of 4KB.

InflaterInputStream ( Stream baseInputStream, Inflater inf ) : System

Create an InflaterInputStream with the specified decompressor and a default buffer size of 4KB.

InflaterInputStream ( Stream baseInputStream, Inflater inflater, int bufferSize ) : System

Create an InflaterInputStream with the specified decompressor and the specified buffer size.

Read ( byte buffer, int offset, int count ) : int

Reads decompressed data into the provided buffer byte array

Seek ( long offset, SeekOrigin origin ) : long

Sets the position within the current stream Always throws a NotSupportedException

SetLength ( long value ) : void

Set the length of the current stream Always throws a NotSupportedException

Skip ( long count ) : long

Skip specified number of bytes of uncompressed data

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

Writes a sequence of bytes to stream and advances the current position This method always throws a NotSupportedException

WriteByte ( byte value ) : void

Writes one byte to the current stream and advances the current position Always throws a NotSupportedException

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Closes the input stream. When is true the underlying stream is also closed.

Fill ( ) : void

Fills the buffer with more data to decompress.

StopDecrypting ( ) : void

Clear any cryptographic state.

Method Details

Dispose() protected méthode

Closes the input stream. When is true the underlying stream is also closed.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Fill() protected méthode

Fills the buffer with more data to decompress.
/// Stream ends early ///
protected Fill ( ) : void
Résultat void

Flush() public méthode

Flushes the baseInputStream
public Flush ( ) : void
Résultat void

InflaterInputStream() public méthode

Create an InflaterInputStream with the default decompressor and a default buffer size of 4KB.
public InflaterInputStream ( Stream baseInputStream ) : System
baseInputStream Stream /// The InputStream to read bytes from ///
Résultat System

InflaterInputStream() public méthode

Create an InflaterInputStream with the specified decompressor and a default buffer size of 4KB.
public InflaterInputStream ( Stream baseInputStream, Inflater inf ) : System
baseInputStream Stream /// The source of input data ///
inf ICSharpCode.SharpZipLib.Zip.Compression.Inflater /// The decompressor used to decompress data read from baseInputStream ///
Résultat System

InflaterInputStream() public méthode

Create an InflaterInputStream with the specified decompressor and the specified buffer size.
public InflaterInputStream ( Stream baseInputStream, Inflater inflater, int bufferSize ) : System
baseInputStream Stream /// The InputStream to read bytes from ///
inflater ICSharpCode.SharpZipLib.Zip.Compression.Inflater /// The decompressor to use ///
bufferSize int /// Size of the buffer to use ///
Résultat System

Read() public méthode

Reads decompressed data into the provided buffer byte array
/// Inflater needs a dictionary ///
public Read ( byte buffer, int offset, int count ) : int
buffer byte /// The array to read and decompress data into ///
offset int /// The offset indicating where the data should be placed ///
count int /// The number of bytes to decompress ///
Résultat int

Seek() public méthode

Sets the position within the current stream Always throws a NotSupportedException
Any access
public Seek ( long offset, SeekOrigin origin ) : long
offset long The relative offset to seek to.
origin SeekOrigin The defining where to seek from.
Résultat long

SetLength() public méthode

Set the length of the current stream Always throws a NotSupportedException
Any access
public SetLength ( long value ) : void
value long The new length value for the stream.
Résultat void

Skip() public méthode

Skip specified number of bytes of uncompressed data
/// The number of bytes to skip is less than or equal to zero. ///
public Skip ( long count ) : long
count long /// Number of bytes to skip ///
Résultat long

StopDecrypting() protected méthode

Clear any cryptographic state.
protected StopDecrypting ( ) : void
Résultat void

Write() public méthode

Writes a sequence of bytes to stream and advances the current position This method always throws a NotSupportedException
Any access
public Write ( byte buffer, int offset, int count ) : void
buffer byte Thew buffer containing data to write.
offset int The offset of the first byte to write.
count int The number of bytes to write.
Résultat void

WriteByte() public méthode

Writes one byte to the current stream and advances the current position Always throws a NotSupportedException
Any access
public WriteByte ( byte value ) : void
value byte The byte to write.
Résultat void

Property Details

csize protected_oe property

The compressed size
protected long csize
Résultat long

inf protected_oe property

Decompressor for this stream
protected Inflater,ICSharpCode.SharpZipLib.Zip.Compression inf
Résultat ICSharpCode.SharpZipLib.Zip.Compression.Inflater

inputBuffer protected_oe property

Input buffer for this stream.
protected InflaterInputBuffer,ICSharpCode.SharpZipLib.Zip.Compression.Streams inputBuffer
Résultat InflaterInputBuffer