#include <zipfile.h>
Inheritance diagram for zipios::ZipFile
Public Methods | |
ZipFile () | |
Default constructor. More... | |
ZipFile ( const string &name, int s_off = 0, int e_off = 0 ) | |
Constructor. More... | |
virtual FileCollection* | clone () const |
Create a heap allocated clone of the object this method is called for. More... | |
virtual | ~ZipFile () |
Destructor. More... | |
virtual void | close () |
Closes the FileCollection. More... | |
virtual istream* | getInputStream ( const ConstEntryPointer &entry ) |
Returns a pointer to an opened istream for the specified FileEntry. More... | |
virtual istream* | getInputStream ( const string &entry_name, MatchPath matchpath = MATCH ) |
Returns a pointer to an opened istream for the specified entry name. More... | |
Static Public Methods | |
ZipFile | openEmbeddedZipFile ( const string &name ) |
Opens a Zip archive embedded in another file, by writing the zip archive to the end of the file followed by the start offset of the zip file. More... |
Definition at line 20 of file zipfile.h.
|
Default constructor.
|
|
Constructor. Opens the zip file name. If the zip "file" is embedded in a file that contains other data, e.g. a binary program, the offset of the zip file start and end must be specified.
Definition at line 30 of file zipfile.cpp. |
|
Destructor.
Definition at line 46 of file zipfile.cpp. |
|
Create a heap allocated clone of the object this method is called for. The caller is responsible for deallocating the clone when he is done with it.
Reimplemented from zipios::FileCollection. Definition at line 41 of file zipfile.cpp. |
|
Closes the FileCollection.
Reimplemented from zipios::FileCollection. Definition at line 50 of file zipfile.cpp. |
|
Returns a pointer to an opened istream for the specified entry name. It is the callers responsibility to delete the stream when he is done with it. Returns 0, if there is no entry with the specified name in the FileCollection.
Reimplemented from zipios::FileCollection. Definition at line 61 of file zipfile.cpp. |
|
Returns a pointer to an opened istream for the specified FileEntry. It is the callers responsibility to delete the stream when he is done with it. Returns 0, if there is no such FileEntry in the FileCollection.
Reimplemented from zipios::FileCollection. Definition at line 55 of file zipfile.cpp. |
|
Opens a Zip archive embedded in another file, by writing the zip archive to the end of the file followed by the start offset of the zip file. The offset must be written in zip-file byte-order (little endian). The program appendzip, which is part of the Zipios++ distribution can be used to append a Zip archive to a file, e.g. a binary program.
Definition at line 19 of file zipfile.cpp. |