new TubZipReader(from: String)#

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

Members

fileCount: numberinstance #

Read only file count inside archive

fileNames: Arrayinstance #

Read only array of file names inside archive

Methods

unZipAllToDir(dirName: String)→Booleaninstance#

Unzip all files to specified folder.

Return:

Success

Arguments info:

  • dirName: String

    directory name to unzip files to

unZipToBuffer(fileIndex: Number, dest: TubBuffer)→numberinstance#

Unzip specified file and append to existed TubBuffer.

Return:

Unzipped bytes count

Arguments info:

  • fileIndex: Number

    index of file to unzip

  • dest: TubBuffer

    buffer to append unzipped data

unZipToDir(fileIndex: Number, dirName: String)→Booleaninstance#

Unzip specified file to specified folder.

Return:

Success

Arguments info:

  • fileIndex: Number

    index of file to unzip

  • dirName: String

    directory name to unzip file to