new TubZipReader(from : String) #

TubZipReader Class for read zip archives. Can read from file name or from TubBuffer

Members

fileCount : number instance #

Read only file count inside archive

fileNames : Array instance #

Read only array of file names inside archive

Methods

unZipAllToDir(dirName : String)→Boolean instance #

Unzip all files to specified folder.

Arguments info:

  • dirName: String

    directory name to unzip files to

unZipToBuffer(fileIndex : Number, dest : TubBuffer)→number instance #

Unzip specified file and append to existed TubBuffer.

Arguments info:

  • fileIndex: Number

    index of file to unzip

  • dest: TubBuffer

    buffer to append unzipped data

unZipToDir(fileIndex : Number, dirName : String)→Boolean instance #

Unzip specified file to specified folder.

Arguments info:

  • fileIndex: Number

    index of file to unzip

  • dirName: String

    directory name to unzip file to