Interface UnzipDecoderConstructor

A constructor for a decoder for unzip streams

interface UnzipDecoderConstructor {
    new UnzipDecoderConstructornew (filename: string, size?: number, originalSize?: number): UnzipDecoder;
    compression: number;
}

Constructors

Properties

Constructors

  • Creates an instance of the decoder

    Parameters

    • filename: string

      The name of the file

    • Optionalsize: number

      The compressed size of the file

    • OptionaloriginalSize: number

      The original size of the file

    Returns UnzipDecoder

Properties

compression: number

The compression format for the data stream. This number is determined by the spec in PKZIP's APPNOTE.txt, section 4.4.5. For example, 0 = no compression, 8 = deflate, 14 = LZMA