UnzipFile
Streaming file extraction from ZIP archives
interface UnzipFile {
compression: number;
name: string;
ondata: AsyncFlateStreamHandler;
originalSize?: number;
size?: number;
terminate: AsyncTerminable;
start(): void;
}§Properties
§
compression: number
[src]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. If start() is called but there is no decompression stream available for this method, start() will throw.
§
ondata: AsyncFlateStreamHandler
[src]The handler to call whenever data is available
§
originalSize?: number
[src]The original size of the file. Will not be present for archives created in a streaming fashion.
§
size?: number
[src]The compressed size of the file. Will not be present for archives created in a streaming fashion.
§
terminate: AsyncTerminable
[src]A method to terminate any internal workers used by the stream. ondata will not be called any further.