19#ifndef INCLUDED_PACKAGE_INC_ZIPOUTPUTSTREAM_HXX
20#define INCLUDED_PACKAGE_INC_ZIPOUTPUTSTREAM_HXX
22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/io/XOutputStream.hpp>
39 css::uno::Reference< css::io::XOutputStream >
m_xStream;
50 const css::uno::Reference< css::io::XOutputStream > &xOStream );
60 void rawWrite(
const css::uno::Sequence< sal_Int8 >& rBuffer );
68 const css::uno::Reference< css::io::XOutputStream >&
getStream()
const;
76 void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength);
91 std::size_t nThreadTasks);
void writeLOC(ZipEntry *pEntry, bool bEncrypt=false)
void consumeFinishedScheduledThreadTaskEntries()
void rawCloseEntry(bool bEncrypt=false)
const css::uno::Reference< css::io::XOutputStream > & getStream() const
ZipEntry * m_pCurrentEntry
void writeDataDescriptor(const ZipEntry &rEntry)
void writeCEN(const ZipEntry &rEntry)
void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength)
::std::vector< ZipEntry * > m_aZipList
void rawWrite(const css::uno::Sequence< sal_Int8 > &rBuffer)
std::vector< ZipOutputEntryInThread * > m_aEntries
const std::shared_ptr< comphelper::ThreadTaskTag > & getThreadTaskTag() const
static void setEntry(ZipEntry *pEntry)
std::shared_ptr< comphelper::ThreadTaskTag > mpThreadTaskTag
void writeExtraFields(const ZipEntry &rEntry)
void addDeflatingThreadTask(ZipOutputEntryInThread *pEntry, std::unique_ptr< comphelper::ThreadTask > pThreadTask)
ZipOutputStream(const css::uno::Reference< css::io::XOutputStream > &xOStream)
This class is used to write Zip files.
void consumeScheduledThreadTaskEntry(std::unique_ptr< ZipOutputEntryInThread > pCandidate)
static sal_uInt32 getCurrentDosTime()
css::uno::Reference< css::io::XOutputStream > m_xStream
void reduceScheduledThreadTasksToGivenNumberOrLess(std::size_t nThreadTasks)
std::exception_ptr m_aDeflateException