C# Class ICSharpCode.SharpZipLib.BZip2.BZip2InputStream

An input stream that decompresses files in the BZip2 format
Inheritance: Stream
Show file Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Methods

Method Description
BZip2InputStream ( Stream stream ) : System

Construct instance for reading from stream

Flush ( ) : void

Flushes the stream.

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

Read a sequence of bytes and advances the read position by one byte.

ReadByte ( ) : int

Read a byte from stream advancing position

Seek ( long offset, SeekOrigin origin ) : long

Set the streams position. This operation is not supported and will throw a NotSupportedException

SetLength ( long value ) : void

Sets the length of this stream to the given value. This operation is not supported and will throw a NotSupportedExceptionortedException

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

Writes a block of bytes to this stream using data from a buffer. This operation is not supported and will throw a NotSupportedException

WriteByte ( byte value ) : void

Writes a byte to the current position in the file stream. This operation is not supported and will throw a NotSupportedException

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Closes the stream, releasing any associated resources.

Private Methods

Method Description
BadBlockHeader ( ) : void
BlockOverrun ( ) : void
BsGetInt32 ( ) : int
BsGetIntVS ( int numBits ) : int
BsGetUChar ( ) : char
BsR ( int n ) : int
BsSetStream ( Stream stream ) : void
Complete ( ) : void
CompressedStreamEOF ( ) : void
CrcError ( ) : void
EndBlock ( ) : void
FillBuffer ( ) : void
GetAndMoveToFrontDecode ( ) : void
HbCreateDecodeTables ( int limit, int baseArray, int perm, char length, int minLen, int maxLen, int alphaSize ) : void
InitBlock ( ) : void
Initialize ( ) : void
MakeMaps ( ) : void
RecvDecodingTables ( ) : void
SetDecompressStructureSizes ( int newSize100k ) : void
SetupBlock ( ) : void
SetupNoRandPartA ( ) : void
SetupNoRandPartB ( ) : void
SetupNoRandPartC ( ) : void
SetupRandPartA ( ) : void
SetupRandPartB ( ) : void
SetupRandPartC ( ) : void

Method Details

BZip2InputStream() public method

Construct instance for reading from stream
public BZip2InputStream ( Stream stream ) : System
stream Stream Data source
return System

Dispose() protected method

Closes the stream, releasing any associated resources.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

Flushes the stream.
public Flush ( ) : void
return void

Read() public method

Read a sequence of bytes and advances the read position by one byte.
public Read ( byte buffer, int offset, int count ) : int
buffer byte Array of bytes to store values in
offset int Offset in array to begin storing data
count int The maximum number of bytes to read
return int

ReadByte() public method

Read a byte from stream advancing position
public ReadByte ( ) : int
return int

Seek() public method

Set the streams position. This operation is not supported and will throw a NotSupportedException
Any access
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point used to obtain the new position.
return long

SetLength() public method

Sets the length of this stream to the given value. This operation is not supported and will throw a NotSupportedExceptionortedException
Any access
public SetLength ( long value ) : void
value long The new length for the stream.
return void

Write() public method

Writes a block of bytes to this stream using data from a buffer. This operation is not supported and will throw a NotSupportedException
Any access
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer to source data from.
offset int The offset to start obtaining data from.
count int The number of bytes of data to write.
return void

WriteByte() public method

Writes a byte to the current position in the file stream. This operation is not supported and will throw a NotSupportedException
Any access
public WriteByte ( byte value ) : void
value byte The value to write.
return void