Used to create a new zip file. More...
|void||addFile (const File &fileToAdd, int compressionLevel, const String &storedPathName=String::empty)|
|Adds a file while should be added to the archive. |
|bool||writeToStream (OutputStream &target, double *progress) const|
|Generates the zip file, writing it to the specified stream. |
Used to create a new zip file.
Currently this just stores the files with no compression.. That will be added soon!
|void ZipFile::Builder::addFile||(||const File &||fileToAdd,|
|const String &||storedPathName =
Adds a file while should be added to the archive.
The file isn't read immediately, all the files will be read later when the writeToStream() method is called.
The compressionLevel can be between 0 (no compression), and 9 (maximum compression). If the storedPathName parameter is specified, you can customise the partial pathname that will be stored for this file.
|bool ZipFile::Builder::writeToStream||(||OutputStream &||target,|
Generates the zip file, writing it to the specified stream.
If the progress parameter is non-null, it will be updated with an approximate progress status between 0 and 1.0