Constructor
new TubZipReader(from)
Arguments:
-
from
(String|TubBuffer)
 fileName or TubBuffer object to read zip archive from
Members
fileNames: Array
Read only array of file names inside archive
fileCount: number
Read only file count inside archive
Methods
unZipToBuffer(fileIndex, dest) → number
Unzip specified file and append to existed TubBuffer.
Arguments:
-
fileIndex
(Number)
 index of file to unzip
-
dest
(TubBuffer)
 buffer to append unzipped data
unZipToDir(fileIndex, dirName) → Boolean
Unzip specified file to specified folder.
Arguments:
-
fileIndex
(Number)
 index of file to unzip
-
dirName
(String)
 directory name to unzip file to
unZipAllToDir(dirName) → Boolean
Unzip all files to specified folder.
Arguments:
-
dirName
(String)
 directory name to unzip files to
unZipToBuffer(fileIndex, dest) → number
Unzip specified file and append to existed TubBuffer.
Arguments:
-
fileIndex
(Number)
 index of file to unzip -
dest
(TubBuffer)
 buffer to append unzipped data
unZipToDir(fileIndex, dirName) → Boolean
Unzip specified file to specified folder.
Arguments:
-
fileIndex
(Number)
 index of file to unzip -
dirName
(String)
 directory name to unzip file to
unZipAllToDir(dirName) → Boolean
Unzip all files to specified folder.
Arguments:
-
dirName
(String)
 directory name to unzip files to