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