A SERVICE OF

logo

162 Chapter 3
firstFile()
Resets file iterator to first file in archive. Returns a string with the name of current file, or
null if not found.
Parameters
This function takes no parameters.
nextFile()
Advances file iterator to next file in archive. Returns a string with the name of current file,
or null if not found.
Parameters
This function takes no parameters.
getFileName()
Returns name of current file in archive.
Parameters
This function takes no parameters.
extractFile()
Extracts the current file to the specified file.
Parameters
destFile - specifies the VFS path of the destination file.
close()
Closes archive file.
Parameters
This function takes no parameters.
Examples
var myZip = new Unzip();
myZip.open("zip/files.zip");
myZip.extractAll("files");
myZip.close();