Library: Zip
Package: Zip
Header: Poco/Zip/ZipStream.h
ZipStreamBuf is used to decompress single files from a Zip file.
Direct Base Classes: Poco::BufferedStreamBuf
All Base Classes: Poco::BufferedStreamBuf
Member Functions: close, crcValid, readFromDevice, writeToDevice
ZipStreamBuf(
    std::istream & istr,
    const ZipLocalFileHeader & fileEntry,
    bool reposition
);
Creates the ZipStreamBuf. Set reposition to false, if you do on-the-fly decompression.
ZipStreamBuf(
    std::ostream & ostr,
    ZipLocalFileHeader & fileEntry,
    bool reposition
);
Creates the ZipStreamBuf. Set reposition to false, if you do on-the-fly compression.
 
 virtual ~ZipStreamBuf();
Destroys the ZipStreamBuf.
void close();
Informs a writing outputstream that writing is done for this stream
bool crcValid() const;
Call this method once all bytes were read from the input stream to determine if the CRC is valid
 
 int readFromDevice(
    char * buffer,
    std::streamsize length
);
 
 int writeToDevice(
    const char * buffer,
    std::streamsize length
);