LibreOffice Module package (master) 1
|
#include <ZipOutputEntry.hxx>
Classes | |
class | Task |
Public Member Functions | |
ZipOutputEntryInThread (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ZipEntry &rEntry, ZipPackageStream *pStream, bool bEncrypt) | |
std::unique_ptr< comphelper::ThreadTask > | createTask (const std::shared_ptr< comphelper::ThreadTaskTag > &pTag, const css::uno::Reference< css::io::XInputStream > &xInStream) |
void | createBufferFile () |
void | setParallelDeflateException (const std::exception_ptr &exception) |
css::uno::Reference< css::io::XInputStream > | getData () const |
const std::exception_ptr & | getParallelDeflateException () const |
void | closeBufferFile () |
void | deleteBufferFile () |
bool | isFinished () const |
Public Member Functions inherited from ZipOutputEntry | |
ZipOutputEntry (const css::uno::Reference< css::io::XOutputStream > &rxOutStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext, ZipEntry &rEntry, ZipPackageStream *pStream, bool bEncrypt) | |
void | writeStream (const css::uno::Reference< css::io::XInputStream > &xInStream) override |
void | write (const css::uno::Sequence< sal_Int8 > &rBuffer) |
Public Member Functions inherited from ZipOutputEntryBase | |
virtual | ~ZipOutputEntryBase ()=default |
virtual void | writeStream (const css::uno::Reference< css::io::XInputStream > &xInStream)=0 |
ZipEntry * | getZipEntry () |
ZipPackageStream * | getZipPackageStream () |
bool | isEncrypt () const |
void | closeEntry () |
Private Member Functions | |
void | setFinished () |
Private Attributes | |
rtl::Reference< utl::TempFileFastService > | m_xTempFile |
std::exception_ptr | m_aParallelDeflateException |
std::atomic< bool > | m_bFinished |
Additional Inherited Members | |
Protected Member Functions inherited from ZipOutputEntry | |
ZipOutputEntry (const css::uno::Reference< css::io::XOutputStream > &rxOutStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext, ZipEntry &rEntry, ZipPackageStream *pStream, bool bEncrypt, bool checkStream) | |
virtual void | finishDeflater () override |
virtual sal_Int64 | getDeflaterTotalIn () const override |
virtual sal_Int64 | getDeflaterTotalOut () const override |
virtual void | deflaterReset () override |
virtual bool | isDeflaterFinished () const override |
void | doDeflate () |
Protected Member Functions inherited from ZipOutputEntryBase | |
ZipOutputEntryBase (css::uno::Reference< css::io::XOutputStream > xOutStream, css::uno::Reference< css::uno::XComponentContext > xContext, ZipEntry &rEntry, ZipPackageStream *pStream, bool bEncrypt, bool checkStream) | |
This class is used to deflate Zip entries. More... | |
void | processDeflated (const css::uno::Sequence< sal_Int8 > &deflateBuffer, sal_Int32 nLength) |
void | processInput (const css::uno::Sequence< sal_Int8 > &rBuffer) |
virtual void | finishDeflater ()=0 |
virtual sal_Int64 | getDeflaterTotalIn () const =0 |
virtual sal_Int64 | getDeflaterTotalOut () const =0 |
virtual void | deflaterReset ()=0 |
virtual bool | isDeflaterFinished () const =0 |
Protected Attributes inherited from ZipOutputEntryBase | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::io::XOutputStream > | m_xOutStream |
css::uno::Reference< css::xml::crypto::XCipherContext > | m_xCipherContext |
css::uno::Reference< css::xml::crypto::XDigestContext > | m_xDigestContext |
CRC32 | m_aCRC |
ZipEntry * | m_pCurrentEntry |
sal_Int16 | m_nDigested |
ZipPackageStream * | m_pCurrentStream |
bool | m_bEncryptCurrentEntry |
Definition at line 112 of file ZipOutputEntry.hxx.
ZipOutputEntryInThread::ZipOutputEntryInThread | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
ZipEntry & | rEntry, | ||
ZipPackageStream * | pStream, | ||
bool | bEncrypt | ||
) |
Definition at line 239 of file ZipOutputEntry.cxx.
void ZipOutputEntryInThread::closeBufferFile | ( | ) |
Definition at line 257 of file ZipOutputEntry.cxx.
References ZipOutputEntryBase::m_xOutStream.
Referenced by ZipOutputEntryInThread::Task::doWork().
void ZipOutputEntryInThread::createBufferFile | ( | ) |
Definition at line 249 of file ZipOutputEntry.cxx.
References ZipOutputEntryBase::m_xOutStream, and m_xTempFile.
Referenced by ZipOutputEntryInThread::Task::doWork().
std::unique_ptr< comphelper::ThreadTask > ZipOutputEntryInThread::createTask | ( | const std::shared_ptr< comphelper::ThreadTaskTag > & | pTag, |
const css::uno::Reference< css::io::XInputStream > & | xInStream | ||
) |
Definition at line 316 of file ZipOutputEntry.cxx.
Referenced by ZipPackageStream::saveChild().
void ZipOutputEntryInThread::deleteBufferFile | ( | ) |
Definition at line 263 of file ZipOutputEntry.cxx.
References ZipOutputEntryBase::m_xOutStream, and m_xTempFile.
Referenced by ZipOutputEntryInThread::Task::doWork().
uno::Reference< io::XInputStream > ZipOutputEntryInThread::getData | ( | ) | const |
Definition at line 269 of file ZipOutputEntry.cxx.
References m_xTempFile.
|
inline |
Definition at line 131 of file ZipOutputEntry.hxx.
References m_aParallelDeflateException.
|
inline |
Definition at line 134 of file ZipOutputEntry.hxx.
References m_bFinished.
|
inlineprivate |
Definition at line 136 of file ZipOutputEntry.hxx.
References m_bFinished.
Referenced by ZipOutputEntryInThread::Task::doWork().
|
inline |
Definition at line 129 of file ZipOutputEntry.hxx.
References m_aParallelDeflateException.
Referenced by ZipOutputEntryInThread::Task::doWork().
|
private |
Definition at line 116 of file ZipOutputEntry.hxx.
Referenced by getParallelDeflateException(), and setParallelDeflateException().
|
private |
Definition at line 117 of file ZipOutputEntry.hxx.
Referenced by isFinished(), and setFinished().
|
private |
Definition at line 115 of file ZipOutputEntry.hxx.
Referenced by createBufferFile(), deleteBufferFile(), ZipOutputEntryInThread::Task::doWork(), and getData().