Inheritance diagram for ICSharpCode::SharpZipLib::Zip::Compression::Streams::DeflaterOutputStream:
Public Member Functions | |
override long | Seek (long offset, SeekOrigin origin) |
Sets the current position of this stream to the given value. Not supported by this class! | |
override void | SetLength (long val) |
Sets the length of this stream to the given value. Not supported by this class! | |
override int | ReadByte () |
Read a byte from stream advancing position by one. | |
override int | Read (byte[] b, int off, int len) |
Read a block of bytes from stream. | |
override IAsyncResult | BeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
Asynchronous reads are not supported a NotSupportedException is always thrown. | |
override IAsyncResult | BeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
Asynchronous writes arent supported, a NotSupportedException is always thrown. | |
DeflaterOutputStream (Stream baseOutputStream) | |
Creates a new DeflaterOutputStream with a default Deflater and default buffer size. | |
DeflaterOutputStream (Stream baseOutputStream, Deflater defl) | |
Creates a new DeflaterOutputStream with the given Deflater and default buffer size. | |
DeflaterOutputStream (Stream baseOutputStream, Deflater deflater, int bufsize) | |
Creates a new DeflaterOutputStream with the given Deflater and buffer size. | |
override void | Flush () |
Flushes the stream by calling flush() on the deflater and then on the underlying stream. This ensures that all bytes are flushed. | |
virtual void | Finish () |
Finishes the stream by calling finish() on the deflater. | |
override void | Close () |
Calls finish() and closes the underlying stream when IsStreamOwner is true. | |
override void | WriteByte (byte bval) |
Writes a single byte to the compressed output stream. | |
override void | Write (byte[] buf, int off, int len) |
Writes bytes from an array to the compressed stream. | |
Protected Member Functions | |
void | Deflate () |
Deflates everything in the input buffers. This will call def.deflate()</code> until all bytes from the input buffers are processed. | |
byte | EncryptByte () |
Encrypt a single byte. | |
void | EncryptBlock (byte[] buffer, int offset, int length) |
Encrypt a block of data. | |
void | InitializePassword (string password) |
Initializes encryption keys based on given password. | |
void | UpdateKeys (byte ch) |
Update encryption keys. | |
Protected Attributes | |
byte[] | buf |
This buffer is used temporarily to retrieve the bytes from the deflater and write them to the underlying output stream. | |
Deflater | def |
The deflater which is used to deflate the stream. | |
Stream | baseOutputStream |
Base stream the deflater depends on. | |
Properties | |
bool | IsStreamOwner |
Get/set flag indicating ownership of underlying stream. When the flag is true Close will close the underlying stream also. | |
bool | CanPatchEntries |
Allows client to determine if an entry can be patched after its added. | |
override bool | CanRead |
Gets value indicating stream can be read from. | |
override bool | CanSeek |
Gets a value indicating if seeking is supported for this stream This property always returns false. | |
override bool | CanWrite |
Get value indicating if this stream supports writing. | |
override long | Length |
Get current length of stream. | |
override long | Position |
The current position within the stream. Always throws a NotSupportedExceptionNotSupportedException. | |
string | password = null |
uint[] | keys = null |
string | Password |
Get/set the password used for encryption. When null no encryption is performed. | |
Private Attributes | |
bool | isClosed = false |
bool | isStreamOwner = true |
Definition at line 52 of file DeflaterOutputStream.cs.
|
Creates a new DeflaterOutputStream with a default Deflater and default buffer size.
Definition at line 241 of file DeflaterOutputStream.cs. |
|
Creates a new DeflaterOutputStream with the given Deflater and default buffer size.
Definition at line 255 of file DeflaterOutputStream.cs. |
|
Creates a new DeflaterOutputStream with the given Deflater and buffer size.
Definition at line 281 of file DeflaterOutputStream.cs. |
|
Asynchronous reads are not supported a NotSupportedException is always thrown.
Definition at line 189 of file DeflaterOutputStream.cs. |
|
Asynchronous writes arent supported, a NotSupportedException is always thrown.
Definition at line 204 of file DeflaterOutputStream.cs. |
|
Calls finish() and closes the underlying stream when IsStreamOwner is true.
Definition at line 344 of file DeflaterOutputStream.cs. |
|
Deflates everything in the input buffers. This will call def.deflate()</code> until all bytes from the input buffers are processed.
Definition at line 214 of file DeflaterOutputStream.cs. |
|
Encrypt a block of data.
Definition at line 434 of file DeflaterOutputStream.cs. |
|
Encrypt a single byte.
Definition at line 415 of file DeflaterOutputStream.cs. |
|
Finishes the stream by calling finish() on the deflater.
Reimplemented in ICSharpCode::SharpZipLib::Zip::ZipOutputStream. Definition at line 318 of file DeflaterOutputStream.cs. |
|
Flushes the stream by calling flush() on the deflater and then on the underlying stream. This ensures that all bytes are flushed.
Definition at line 305 of file DeflaterOutputStream.cs. References ICSharpCode::SharpZipLib::Zip::Compression::Deflater::Flush(). |
|
Initializes encryption keys based on given password.
Definition at line 447 of file DeflaterOutputStream.cs. |
|
Read a block of bytes from stream.
Definition at line 174 of file DeflaterOutputStream.cs. |
|
Read a byte from stream advancing position by one.
Definition at line 165 of file DeflaterOutputStream.cs. |
|
Sets the current position of this stream to the given value. Not supported by this class!
Definition at line 147 of file DeflaterOutputStream.cs. |
|
Sets the length of this stream to the given value. Not supported by this class!
Definition at line 156 of file DeflaterOutputStream.cs. |
|
Update encryption keys.
Definition at line 462 of file DeflaterOutputStream.cs. |
|
Writes bytes from an array to the compressed stream.
Reimplemented in ICSharpCode::SharpZipLib::Zip::ZipOutputStream. Definition at line 380 of file DeflaterOutputStream.cs. |
|
Writes a single byte to the compressed output stream.
Definition at line 361 of file DeflaterOutputStream.cs. |
|
Base stream the deflater depends on.
Definition at line 68 of file DeflaterOutputStream.cs. |
|
This buffer is used temporarily to retrieve the bytes from the deflater and write them to the underlying output stream.
Definition at line 58 of file DeflaterOutputStream.cs. |
|
The deflater which is used to deflate the stream.
Definition at line 63 of file DeflaterOutputStream.cs. |
|
Definition at line 70 of file DeflaterOutputStream.cs. |
|
Definition at line 71 of file DeflaterOutputStream.cs. |
|
Allows client to determine if an entry can be patched after its added.
Definition at line 86 of file DeflaterOutputStream.cs. |
|
Gets value indicating stream can be read from.
Definition at line 95 of file DeflaterOutputStream.cs. |
|
Gets a value indicating if seeking is supported for this stream This property always returns false.
Definition at line 105 of file DeflaterOutputStream.cs. |
|
Get value indicating if this stream supports writing.
Definition at line 114 of file DeflaterOutputStream.cs. |
|
Get/set flag indicating ownership of underlying stream. When the flag is true Close will close the underlying stream also.
Definition at line 78 of file DeflaterOutputStream.cs. |
|
Definition at line 390 of file DeflaterOutputStream.cs. |
|
Get current length of stream.
Definition at line 123 of file DeflaterOutputStream.cs. |
|
Get/set the password used for encryption. When null no encryption is performed.
Definition at line 395 of file DeflaterOutputStream.cs. |
|
Definition at line 389 of file DeflaterOutputStream.cs. |
|
The current position within the stream. Always throws a NotSupportedExceptionNotSupportedException.
Definition at line 134 of file DeflaterOutputStream.cs. |