strigi/src/streams
Strigi::ZipInputStream Class Reference
Partial implementation of the zip file format according to http://www.pkware.com/business_and_developers/developer/popups/appnote.txt http://www.pkware.com/documents/casestudies/APPNOTE.TXT 99% of zip files on my system can be read with this class. More...
#include <zipinputstream.h>

Public Member Functions | |
| ZipInputStream (InputStream *input) | |
| ~ZipInputStream () | |
| InputStream * | nextEntry () |
Static Public Member Functions | |
| static bool | checkHeader (const char *data, int32_t datasize) |
| static SubStreamProvider * | factory (InputStream *input) |
Detailed Description
Partial implementation of the zip file format according to http://www.pkware.com/business_and_developers/developer/popups/appnote.txt http://www.pkware.com/documents/casestudies/APPNOTE.TXT 99% of zip files on my system can be read with this class.
Exceptions are files that are (at least)
- files generated by writing to stdout
- files using other compression as deflated
- encrypted files
Definition at line 38 of file zipinputstream.h.
Constructor & Destructor Documentation
| ZipInputStream::ZipInputStream | ( | InputStream * | input | ) | [explicit] |
Definition at line 40 of file zipinputstream.cpp.
| ZipInputStream::~ZipInputStream | ( | ) |
Definition at line 45 of file zipinputstream.cpp.
Member Function Documentation
Definition at line 34 of file zipinputstream.cpp.
| static SubStreamProvider* Strigi::ZipInputStream::factory | ( | InputStream * | input | ) | [inline, static] |
Definition at line 53 of file zipinputstream.h.
| InputStream * ZipInputStream::nextEntry | ( | ) | [virtual] |
Get the next substream.
This function should return a stream representing the next substream that can be read from the input stream, or 0 if there are no more substreams.
For example, if the input stream were a tar archive, it would return a stream representing the next file or directory in the archive.
It should also load the substream (the same one that was returned) into entrystream, and set entryinfo to an EntryInfo giving information about the substream.
If there may be more substreams, but an error occurred, 0 should be returned, the status should be set to Error and an error message should be set.
- Returns:
- the next substream, or 0 if there are no more substreams or an error occurred
Implements Strigi::SubStreamProvider.
Definition at line 54 of file zipinputstream.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference