Output stream for writing zip files.
PutNextEntry() is used to create a new entry in the output zip, then the entry's data is written to the wxZipOutputStream. Another call to PutNextEntry() closes the current entry and begins the next.
Derived from
Include files
<wx/zipstrm.h>
See also
Archive formats such as zip
wxZipEntry
wxZipInputStream
Constructor. level is the compression level to use. It can be a value between 0 and 9 or -1 to use the default value which currently is equivalent to 6.
In a Unicode build the third parameter conv is used to translate the filename and comment fields to Unicode. It has no effect on the stream's data.
The destructor calls Close() to finish writing the zip if it has not been called already.
Finishes writing the zip, returning true if successfully. Called by the destructor if not called explicitly.
Close the current entry. It is called implicitly whenever another new entry is created with CopyEntry() or PutNextEntry(), or when the zip is closed.
Transfers the zip comment from the wxZipInputStream to this output stream.
Takes ownership of entry and uses it to create a new entry in the zip. entry is then opened in inputStream and its contents copied to this stream.
CopyEntry() is much more efficient than transferring the data using Read() and Write() since it will copy them without decompressing and recompressing them.
For zips on seekable streams, entry must be from the same zip file as stream. For non-seekable streams, entry must also be the last thing read from inputStream.
Set the compression level that will be used the next time an entry is created. It can be a value between 0 and 9 or -1 to use the default value which currently is equivalent to 6.
Create a new directory entry (see wxArchiveEntry::IsDir()) with the given name and timestamp.
PutNextEntry() can also be used to create directory entries, by supplying a name with a trailing path separator.
Takes ownership of entry and uses it to create a new entry in the zip.
Create a new entry with the given name, timestamp and size.
Sets a comment for the zip as a whole. It is written at the end of the zip.
ymasuda 平成17年11月19日