LibreOffice Module package (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ZipOutputEntryBase Class Referenceabstract

#include <ZipOutputEntry.hxx>

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

Public Member Functions

virtual ~ZipOutputEntryBase ()=default
 
virtual void writeStream (const css::uno::Reference< css::io::XInputStream > &xInStream)=0
 
ZipEntrygetZipEntry ()
 
ZipPackageStreamgetZipPackageStream ()
 
bool isEncrypt () const
 
void closeEntry ()
 

Protected Member Functions

 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

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 40 of file ZipOutputEntry.hxx.

Constructor & Destructor Documentation

◆ ~ZipOutputEntryBase()

virtual ZipOutputEntryBase::~ZipOutputEntryBase ( )
virtualdefault

◆ ZipOutputEntryBase()

ZipOutputEntryBase::ZipOutputEntryBase ( css::uno::Reference< css::io::XOutputStream >  xOutStream,
css::uno::Reference< css::uno::XComponentContext >  xContext,
ZipEntry rEntry,
ZipPackageStream pStream,
bool  bEncrypt,
bool  checkStream 
)
protected

Member Function Documentation

◆ closeEntry()

void ZipOutputEntryBase::closeEntry ( )

◆ deflaterReset()

virtual void ZipOutputEntryBase::deflaterReset ( )
protectedpure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Referenced by closeEntry().

◆ finishDeflater()

virtual void ZipOutputEntryBase::finishDeflater ( )
protectedpure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Referenced by closeEntry().

◆ getDeflaterTotalIn()

virtual sal_Int64 ZipOutputEntryBase::getDeflaterTotalIn ( ) const
protectedpure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Referenced by closeEntry().

◆ getDeflaterTotalOut()

virtual sal_Int64 ZipOutputEntryBase::getDeflaterTotalOut ( ) const
protectedpure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Referenced by closeEntry().

◆ getZipEntry()

ZipEntry * ZipOutputEntryBase::getZipEntry ( )
inline

Definition at line 60 of file ZipOutputEntry.hxx.

References m_pCurrentEntry.

◆ getZipPackageStream()

ZipPackageStream * ZipOutputEntryBase::getZipPackageStream ( )
inline

Definition at line 61 of file ZipOutputEntry.hxx.

References m_pCurrentStream.

◆ isDeflaterFinished()

virtual bool ZipOutputEntryBase::isDeflaterFinished ( ) const
protectedpure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Referenced by processDeflated().

◆ isEncrypt()

bool ZipOutputEntryBase::isEncrypt ( ) const
inline

Definition at line 62 of file ZipOutputEntry.hxx.

References m_bEncryptCurrentEntry.

◆ processDeflated()

void ZipOutputEntryBase::processDeflated ( const css::uno::Sequence< sal_Int8 > &  deflateBuffer,
sal_Int32  nLength 
)
protected

◆ processInput()

void ZipOutputEntryBase::processInput ( const css::uno::Sequence< sal_Int8 > &  rBuffer)
protected

Definition at line 165 of file ZipOutputEntry.cxx.

References m_aCRC, m_bEncryptCurrentEntry, and CRC32::updateSegment().

Referenced by ZipOutputEntry::write().

◆ writeStream()

virtual void ZipOutputEntryBase::writeStream ( const css::uno::Reference< css::io::XInputStream > &  xInStream)
pure virtual

Implemented in ZipOutputEntry, and ZipOutputEntryParallel.

Member Data Documentation

◆ m_aCRC

CRC32 ZipOutputEntryBase::m_aCRC
protected

◆ m_bEncryptCurrentEntry

bool ZipOutputEntryBase::m_bEncryptCurrentEntry
protected

◆ m_nDigested

sal_Int16 ZipOutputEntryBase::m_nDigested
protected

Definition at line 51 of file ZipOutputEntry.hxx.

Referenced by processDeflated().

◆ m_pCurrentEntry

ZipEntry* ZipOutputEntryBase::m_pCurrentEntry
protected

Definition at line 50 of file ZipOutputEntry.hxx.

Referenced by closeEntry(), getZipEntry(), processDeflated(), and ZipOutputEntryBase().

◆ m_pCurrentStream

ZipPackageStream* ZipOutputEntryBase::m_pCurrentStream
protected

Definition at line 52 of file ZipOutputEntry.hxx.

Referenced by closeEntry(), and getZipPackageStream().

◆ m_xCipherContext

css::uno::Reference< css::xml::crypto::XCipherContext > ZipOutputEntryBase::m_xCipherContext
protected

Definition at line 46 of file ZipOutputEntry.hxx.

Referenced by closeEntry(), processDeflated(), and ZipOutputEntryBase().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > ZipOutputEntryBase::m_xContext
protected

Definition at line 43 of file ZipOutputEntry.hxx.

Referenced by ZipOutputEntryBase().

◆ m_xDigestContext

css::uno::Reference< css::xml::crypto::XDigestContext > ZipOutputEntryBase::m_xDigestContext
protected

Definition at line 47 of file ZipOutputEntry.hxx.

Referenced by closeEntry(), processDeflated(), and ZipOutputEntryBase().

◆ m_xOutStream

css::uno::Reference< css::io::XOutputStream > ZipOutputEntryBase::m_xOutStream
protected

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