ZipOutputStream Members

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipOutputStream Members

ZipOutputStream overview

Public Instance Constructors

ZipOutputStream Constructor Creates a new Zip output stream, writing a zip archive.

Public Instance Properties

CanPatchEntries (inherited from DeflaterOutputStream) Allows client to determine if an entry can be patched after its added
CanRead (inherited from DeflaterOutputStream) Gets value indicating stream can be read from
CanSeek (inherited from DeflaterOutputStream) Gets a value indicating if seeking is supported for this stream This property always returns false
CanWrite (inherited from DeflaterOutputStream) Get value indicating if this stream supports writing
IsFinished Gets boolean indicating central header has been added for this archive... No further entries can be added once this has been done.
IsStreamOwner (inherited from DeflaterOutputStream) Get/set flag indicating ownership of the underlying stream. When the flag is true Close will close the underlying stream also.
Length (inherited from DeflaterOutputStream) Get current length of stream
Password (inherited from DeflaterOutputStream) Get/set the password used for encryption.
Position (inherited from DeflaterOutputStream) Gets the current position within the stream.

Public Instance Methods

BeginRead (inherited from DeflaterOutputStream) Asynchronous reads are not supported a NotSupportedException is always thrown
BeginWrite (inherited from DeflaterOutputStream) Asynchronous writes arent supported, a NotSupportedException is always thrown
Close (inherited from DeflaterOutputStream) Calls Finish and closes the underlying stream when IsStreamOwner is true.
CloseEntry Closes the current entry, updating header and footer information as required
CreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
EndRead (inherited from Stream) Waits for the pending asynchronous read to complete.
EndWrite (inherited from Stream) Ends an asynchronous write operation.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
Finish Finishes the stream. This will write the central directory at the end of the zip file and flush the stream.
Flush (inherited from DeflaterOutputStream) Flushes the stream by calling flush() on the deflater and then on the underlying stream. This ensures that all bytes are flushed.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLevel Get the current deflate compression level
GetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object) Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
PutNextEntry Starts a new Zip entry. It automatically closes the previous entry if present. All entry elements bar name are optional, but must be correct if present. If the compression method is stored and the output is not patchable the compression for that entry is automatically changed to deflate level 0
Read (inherited from DeflaterOutputStream) Read a block of bytes from stream
ReadByte (inherited from DeflaterOutputStream) Read a byte from stream advancing position by one
Seek (inherited from DeflaterOutputStream) Sets the current position of this stream to the given value. Not supported by this class!
SetComment Set the zip file comment.
SetLength (inherited from DeflaterOutputStream) Sets the length of this stream to the given value. Not supported by this class!
SetLevel Sets default compression level. The new level will be activated immediately.
ToString (inherited from Object) Returns a String that represents the current Object.
Write Writes the given buffer to the current entry.
WriteByte (inherited from DeflaterOutputStream) Writes a single byte to the compressed output stream.

Protected Instance Fields

baseOutputStream (inherited from DeflaterOutputStream) Base stream the deflater depends on.
def (inherited from DeflaterOutputStream) The deflater which is used to deflate the stream.

Protected Instance Methods

CreateWaitHandle (inherited from Stream) Allocates a WaitHandle object.
Deflate (inherited from DeflaterOutputStream) Deflates everything in the input buffers. This will call
def.deflate()
until all bytes from the input buffers are processed.
EncryptBlock (inherited from DeflaterOutputStream) Encrypt a block of data
EncryptByte (inherited from DeflaterOutputStream) Encrypt a single byte
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
InitializePassword (inherited from DeflaterOutputStream) Initializes encryption keys based on given password
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
UpdateKeys (inherited from DeflaterOutputStream) Update encryption keys

See Also

ZipOutputStream Class | ICSharpCode.SharpZipLib.Zip Namespace