1//
2// Keep.cpp
3//
4// Library: Zip
5// Package: Manipulation
6// Module: Keep
7//
8// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Zip/Keep.h"
16#include "Poco/Zip/Compress.h"
17#include "Poco/Buffer.h"
18#include "Poco/StreamCopier.h"
19
20
21namespace Poco {
22namespace Zip {
23
24
25Keep::Keep(const ZipLocalFileHeader& hdr):
26 _hdr(hdr)
27{
28}
29
30
31void Keep::execute(Compress& c, std::istream& input)
32{
33 c.addFileRaw(input, _hdr, _hdr.getFileName());
34}
35
36
37} } // namespace Poco::Zip
38