Interface nsIZipEntryType

Hierarchy

Properties

CRC32: number

The CRC-32 hash of the file in the entry.

compression: number

The type of compression used for the item. The possible values and their meanings are defined in the zip file specification at http://www.pkware.com/business_and_developers/developer/appnote/

isDirectory: boolean

True if the name of the entry ends with '/' and false otherwise.

isSynthetic: boolean

Use this attribute to determine whether this item is an actual zip entry or is one synthesized for part of a real entry's path. A synthesized entry represents a directory within the zip file which has no corresponding entry within the zip file. For example, the entry for the directory foo/ in a zip containing exactly one entry for foo/bar.txt is synthetic. If the zip file contains an actual entry for a directory, this attribute will be false for the nsIZipEntry for that directory. It is impossible for a file to be synthetic.

lastModifiedTime: number

The time at which this item was last modified.

permissions: number

The UNIX style file permissions of this item.

realSize: number

The uncompressed size of the data in the item.

size: number

The compressed size of the data in the item.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

Generated using TypeDoc