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

Inheritance: Stream
Show file Open project: icsharpcode/SharpZipLib Class Usage Examples

Protected Properties

Property Type Description
csize long
inf ICSharpCode.SharpZipLib.Zip.Compression.Inflater
inputBuffer InflaterInputBuffer

Public Methods

Method 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

Protected Methods

Method 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 method

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

Fill() protected method

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

Flush() public method

Flushes the baseInputStream
public Flush ( ) : void
return void

InflaterInputStream() public method

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 ///
return System

InflaterInputStream() public method

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 ///
return System

InflaterInputStream() public method

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 ///
return System

Read() public method

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 ///
return int

Seek() public method

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.
return long

SetLength() public method

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.
return void

Skip() public method

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 ///
return long

StopDecrypting() protected method

Clear any cryptographic state.
protected StopDecrypting ( ) : void
return void

Write() public method

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.
return void

WriteByte() public method

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.
return void

Property Details

csize protected property

The compressed size
protected long csize
return long

inf protected property

Decompressor for this stream
protected Inflater,ICSharpCode.SharpZipLib.Zip.Compression inf
return ICSharpCode.SharpZipLib.Zip.Compression.Inflater

inputBuffer protected property

Input buffer for this stream.
protected InflaterInputBuffer,ICSharpCode.SharpZipLib.Zip.Compression.Streams inputBuffer
return InflaterInputBuffer