#include <zipoutputstream.h>
Inheritance diagram for zipios::ZipOutputStream
Public Methods | |
ZipOutputStream ( ostream &os, streampos pos = 0 ) | |
ZipOutputStream constructor. More... | |
ZipOutputStream ( const string &filename, streampos pos = 0 ) | |
void | closeEntry () |
Closes the current entry updates its header with the relevant size information and positions the stream write pointer for the next entry header. More... | |
void | close () |
Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is closed as well. More... | |
void | finish () |
Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing the ZipOutputStream. More... | |
void | putNextEntry ( const ZipCDirEntry &entry ) |
Begins writing the next entry. More... | |
void | setComment ( const string &comment ) |
Sets the global comment for the Zip archive. More... | |
void | setLevel ( int level ) |
Sets the compression level to be used for subsequent entries. More... | |
void | setMethod ( StorageMethod method ) |
Sets the compression method to be used. More... | |
virtual | ~ZipOutputStream () |
Destructor. More... |
The interface approximates the interface of the Java ZipOutputStream.
Definition at line 20 of file zipoutputstream.h.
|
ZipOutputStream constructor.
Definition at line 11 of file zipoutputstream.cpp. |
|
Definition at line 22 of file zipoutputstream.cpp. |
|
Destructor.
Definition at line 68 of file zipoutputstream.cpp. |
|
Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is closed as well. If the ZipOutputStream was created with an ostream as its first parameter nothing but the call to finish happens. Definition at line 36 of file zipoutputstream.cpp. |
|
Closes the current entry updates its header with the relevant size information and positions the stream write pointer for the next entry header. Puts the stream in EOF state. Call putNextEntry() to clear the EOF stream state flag. Definition at line 31 of file zipoutputstream.cpp. |
|
Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing the ZipOutputStream. The output stream that the zip archive is being written to is not closed. Definition at line 43 of file zipoutputstream.cpp. |
|
Begins writing the next entry. Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry.
Definition at line 48 of file zipoutputstream.cpp. |
|
Sets the global comment for the Zip archive.
Definition at line 53 of file zipoutputstream.cpp. |
|
Sets the compression level to be used for subsequent entries.
Definition at line 58 of file zipoutputstream.cpp. |
|
Sets the compression method to be used. only STORED and DEFLATED are supported. Definition at line 63 of file zipoutputstream.cpp. |