ZipOutputStream Methods

The methods of the ZipOutputStream class are listed below. For a complete list of ZipOutputStream class members, see the ZipOutputStream Members topic.

Public Instance Methods

BeginRead (inherited from Stream)Select the method name to go to the Microsoft documentation.
BeginWrite (inherited from Stream)Select the method name to go to the Microsoft documentation.
Close (inherited from DeflaterOutputStream) Calls finish () and closes the stream.
CloseEntry Closes the current entry.
CreateObjRef (inherited from MarshalByRefObject)Select the method name to go to the Microsoft documentation.
EndRead (inherited from Stream)Select the method name to go to the Microsoft documentation.
EndWrite (inherited from Stream)Select the method name to go to the Microsoft documentation.
Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
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)Select the method name to go to the Microsoft documentation.
GetLifetimeService (inherited from MarshalByRefObject)Select the method name to go to the Microsoft documentation.
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
InitializeLifetimeService (inherited from MarshalByRefObject)Select the method name to go to the Microsoft documentation.
PutNextEntry Starts a new Zip entry. It automatically closes the previous entry if present. If the compression method is stored, the entry must have a valid size and crc, otherwise all elements (except name) are optional, but must be correct if present. If the time is not set in the entry, the current time is used.
Read (inherited from DeflaterOutputStream) I needed to implement the abstract member.
ReadByte (inherited from DeflaterOutputStream) I needed to implement the abstract member.
Seek (inherited from DeflaterOutputStream) I needed to implement the abstract member.
SetComment Set the zip file comment.
SetLength (inherited from DeflaterOutputStream) I needed to implement the abstract member.
SetLevel Sets default compression level. The new level will be activated immediately.
SetMethod Sets default compression method. If the Zip entry specifies another method its method takes precedence.
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.
Write Writes the given buffer to the current entry.
WriteByte (inherited from DeflaterOutputStream) Writes a single byte to the compressed output stream.

Protected Instance Methods

CreateWaitHandle (inherited from Stream)Select the method name to go to the Microsoft documentation.
deflate (inherited from DeflaterOutputStream) Deflates everything in the def's input buffers. This will call
def.deflate()
until all bytes from the input buffers are processed.
Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.

Explicit Interface Implementations

IDisposable.Dispose (inherited from Stream)Select the method name to go to the Microsoft documentation.

See Also

ZipOutputStream Class | ICSharpCode.SharpZipLib.Zip Namespace