This class implements an output stream filter for writing files in the ZIP file format. Includes support for both compressed and uncompressed entries.

See java.util.zip.ZipOutputStream for full documentation

Hierarchy

Constructors

Methods

  • Closes the ZIP output stream as well as the stream being filtered.

    Returns void

  • Closes the current ZIP entry and positions the stream for writing the next entry.

    Returns void

  • Finishes writing the contents of the ZIP output stream without closing the underlying stream.

    Returns void

  • Flushes this output stream and forces any buffered output bytes to be written out.

    Returns void

  • Begins writing a new ZIP file entry and positions the stream to the start of the entry data.

    Parameters

    Returns void

  • Sets the ZIP file comment.

    Parameters

    • comment: string

    Returns void

  • Sets the compression level for subsequent entries which are DEFLATED.

    Parameters

    • level: number

    Returns void

  • Sets the default compression method for subsequent entries.

    Parameters

    • method: number

    Returns void

  • Writes b.length bytes from the specified byte array to this output stream.

    Parameters

    Returns void

  • Writes len bytes from the specified byte array starting at offset off to this output stream.

    Parameters

    Returns void

  • Writes the specified byte to this output stream.

    Parameters

    • b: number

    Returns void

Generated using TypeDoc