mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-03 01:54:47 +02:00
fixed doc (#2477)
This commit is contained in:
parent
35cf889acd
commit
bd0b767502
@ -152,6 +152,7 @@ To decompress single files you must first parse a Zip file, and then decompress
|
|||||||
ZipArchive arch(inp);
|
ZipArchive arch(inp);
|
||||||
ZipArchive::FileHeaders::const_iterator it = arch.findHeader("data/hello.txt");
|
ZipArchive::FileHeaders::const_iterator it = arch.findHeader("data/hello.txt");
|
||||||
poco_assert (it != arch.headerEnd());
|
poco_assert (it != arch.headerEnd());
|
||||||
|
inp.clear();
|
||||||
ZipInputStream zipin(inp, it->second);
|
ZipInputStream zipin(inp, it->second);
|
||||||
std::ostringstream out(std::ios::binary);
|
std::ostringstream out(std::ios::binary);
|
||||||
Poco::StreamCopier::copyStream(zipin, out);
|
Poco::StreamCopier::copyStream(zipin, out);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user