LibreOffice Module package (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ZipOutputEntryInThread Class Referencefinal

#include <ZipOutputEntry.hxx>

Inheritance diagram for ZipOutputEntryInThread:
[legend]
Collaboration diagram for ZipOutputEntryInThread:
[legend]

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::ThreadTaskcreateTask (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
 
ZipEntrygetZipEntry ()
 
ZipPackageStreamgetZipPackageStream ()
 
bool isEncrypt () const
 
void closeEntry ()
 

Private Member Functions

void setFinished ()
 

Private Attributes

rtl::Reference< utl::TempFileFastServicem_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
 
ZipEntrym_pCurrentEntry
 
sal_Int16 m_nDigested
 
ZipPackageStreamm_pCurrentStream
 
bool m_bEncryptCurrentEntry
 

Detailed Description

Definition at line 112 of file ZipOutputEntry.hxx.

Constructor & Destructor Documentation

◆ ZipOutputEntryInThread()

ZipOutputEntryInThread::ZipOutputEntryInThread ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ZipEntry rEntry,
ZipPackageStream pStream,
bool  bEncrypt 
)

Definition at line 239 of file ZipOutputEntry.cxx.

Member Function Documentation

◆ closeBufferFile()

void ZipOutputEntryInThread::closeBufferFile ( )

◆ createBufferFile()

void ZipOutputEntryInThread::createBufferFile ( )

◆ createTask()

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().

◆ deleteBufferFile()

void ZipOutputEntryInThread::deleteBufferFile ( )

◆ getData()

uno::Reference< io::XInputStream > ZipOutputEntryInThread::getData ( ) const

Definition at line 269 of file ZipOutputEntry.cxx.

References m_xTempFile.

◆ getParallelDeflateException()

const std::exception_ptr & ZipOutputEntryInThread::getParallelDeflateException ( ) const
inline

Definition at line 131 of file ZipOutputEntry.hxx.

References m_aParallelDeflateException.

◆ isFinished()

bool ZipOutputEntryInThread::isFinished ( ) const
inline

Definition at line 134 of file ZipOutputEntry.hxx.

References m_bFinished.

◆ setFinished()

void ZipOutputEntryInThread::setFinished ( )
inlineprivate

Definition at line 136 of file ZipOutputEntry.hxx.

References m_bFinished.

Referenced by ZipOutputEntryInThread::Task::doWork().

◆ setParallelDeflateException()

void ZipOutputEntryInThread::setParallelDeflateException ( const std::exception_ptr &  exception)
inline

Definition at line 129 of file ZipOutputEntry.hxx.

References m_aParallelDeflateException.

Referenced by ZipOutputEntryInThread::Task::doWork().

Member Data Documentation

◆ m_aParallelDeflateException

std::exception_ptr ZipOutputEntryInThread::m_aParallelDeflateException
private

Definition at line 116 of file ZipOutputEntry.hxx.

Referenced by getParallelDeflateException(), and setParallelDeflateException().

◆ m_bFinished

std::atomic<bool> ZipOutputEntryInThread::m_bFinished
private

Definition at line 117 of file ZipOutputEntry.hxx.

Referenced by isFinished(), and setFinished().

◆ m_xTempFile

rtl::Reference<utl::TempFileFastService> ZipOutputEntryInThread::m_xTempFile
private

The documentation for this class was generated from the following files: