#include <zipoutputstreambuf.h>
Inheritance diagram for zipios::ZipOutputStreambuf
Public Types | |
enum | CompressionLevels { NO_COMPRESSION = Z_NO_COMPRESSION, BEST_SPEED = Z_BEST_SPEED, BEST_COMPRESSION = Z_BEST_COMPRESSION, DEFAULT_COMPRESSION = Z_DEFAULT_COMPRESSION } |
Public Methods | |
ZipOutputStreambuf ( streambuf *outbuf, bool del_outbuf = false ) | |
ZipOutputStreambuf constructor. More... | |
void | closeEntry () |
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one). More... | |
void | close () |
Calls finish. 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 | ~ZipOutputStreambuf () |
Destructor. More... | |
Protected Methods | |
virtual int | overflow ( int c = EOF ) |
virtual int | sync () |
void | setEntryClosedState () |
void | updateEntryHeaderInfo () |
Static Protected Methods | |
void | writeCentralDirectory ( const vector< ZipCDirEntry > &entries, EndOfCentralDirectory eocd, ostream &os ) |
Definition at line 17 of file zipoutputstreambuf.h.
|
Definition at line 20 of file zipoutputstreambuf.h. |
|
ZipOutputStreambuf constructor. A newly constructed ZipOutputStreambuf is not ready to accept data, putNextEntry() must be invoked first.
Definition at line 18 of file zipoutputstreambuf.cpp. |
|
Destructor.
Definition at line 54 of file zipoutputstreambuf.cpp. |
|
Calls finish.
Definition at line 39 of file zipoutputstreambuf.cpp. |
|
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).
Definition at line 28 of file zipoutputstreambuf.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 44 of file zipoutputstreambuf.cpp. |
|
Reimplemented from zipios::DeflateOutputStreambuf. Definition at line 106 of file zipoutputstreambuf.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 59 of file zipoutputstreambuf.cpp. |
|
Sets the global comment for the Zip archive.
Definition at line 81 of file zipoutputstreambuf.cpp. |
|
Definition at line 125 of file zipoutputstreambuf.cpp. |
|
Sets the compression level to be used for subsequent entries.
Definition at line 86 of file zipoutputstreambuf.cpp. |
|
Sets the compression method to be used. only STORED and DEFLATED are supported. Definition at line 91 of file zipoutputstreambuf.cpp. |
|
Reimplemented from zipios::DeflateOutputStreambuf. Definition at line 116 of file zipoutputstreambuf.cpp. |
|
Definition at line 132 of file zipoutputstreambuf.cpp. |
|
Definition at line 153 of file zipoutputstreambuf.cpp. |