LibreOffice Module package (master) 1
|
#include <ZipOutputEntry.hxx>
Public Member Functions | |
virtual | ~ZipOutputEntryBase ()=default |
virtual void | writeStream (const css::uno::Reference< css::io::XInputStream > &xInStream)=0 |
ZipEntry * | getZipEntry () |
ZipPackageStream * | getZipPackageStream () |
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 |
ZipEntry * | m_pCurrentEntry |
sal_Int16 | m_nDigested |
ZipPackageStream * | m_pCurrentStream |
bool | m_bEncryptCurrentEntry |
Definition at line 40 of file ZipOutputEntry.hxx.
|
virtualdefault |
|
protected |
This class is used to deflate Zip entries.
Definition at line 43 of file ZipOutputEntry.cxx.
References ZipPackageStream::GetEncryptionData(), m_bEncryptCurrentEntry, m_pCurrentEntry, m_xCipherContext, m_xContext, m_xContext, m_xDigestContext, m_xOutStream, and ZipEntry::nMethod.
void ZipOutputEntryBase::closeEntry | ( | ) |
Definition at line 67 of file ZipOutputEntry.cxx.
References deflaterReset(), finishDeflater(), getDeflaterTotalIn(), getDeflaterTotalOut(), CRC32::getValue(), m_aCRC, m_bEncryptCurrentEntry, m_pCurrentEntry, m_pCurrentStream, m_xCipherContext, m_xDigestContext, ZipEntry::nCompressedSize, ZipEntry::nCrc, ZipEntry::nFlag, ZipEntry::nSize, CRC32::reset(), and ZipPackageStream::setDigest().
Referenced by ZipPackage::WriteContentTypes(), ZipPackage::WriteManifest(), ZipOutputEntry::writeStream(), and ZipOutputEntryParallel::writeStream().
|
protectedpure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
Referenced by closeEntry().
|
protectedpure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
Referenced by closeEntry().
|
protectedpure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
Referenced by closeEntry().
|
protectedpure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
Referenced by closeEntry().
|
inline |
Definition at line 60 of file ZipOutputEntry.hxx.
References m_pCurrentEntry.
|
inline |
Definition at line 61 of file ZipOutputEntry.hxx.
References m_pCurrentStream.
|
protectedpure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
Referenced by processDeflated().
|
inline |
Definition at line 62 of file ZipOutputEntry.hxx.
References m_bEncryptCurrentEntry.
|
protected |
Definition at line 116 of file ZipOutputEntry.cxx.
References isDeflaterFinished(), m_aCRC, m_bEncryptCurrentEntry, m_nDigested, m_pCurrentEntry, m_xCipherContext, m_xDigestContext, m_xOutStream, n_ConstDigestLength, ZipEntry::nCompressedSize, nLength, ZipEntry::nSize, and CRC32::update().
Referenced by ZipOutputEntry::doDeflate(), and ZipOutputEntryParallel::writeStream().
|
protected |
Definition at line 165 of file ZipOutputEntry.cxx.
References m_aCRC, m_bEncryptCurrentEntry, and CRC32::updateSegment().
Referenced by ZipOutputEntry::write().
|
pure virtual |
Implemented in ZipOutputEntry, and ZipOutputEntryParallel.
|
protected |
Definition at line 49 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), processDeflated(), processInput(), and ZipOutputEntryParallel::writeStream().
|
protected |
Definition at line 53 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), isEncrypt(), processDeflated(), processInput(), ZipOutputEntryParallel::writeStream(), and ZipOutputEntryBase().
|
protected |
Definition at line 51 of file ZipOutputEntry.hxx.
Referenced by processDeflated().
|
protected |
Definition at line 50 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), getZipEntry(), processDeflated(), and ZipOutputEntryBase().
|
protected |
Definition at line 52 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), and getZipPackageStream().
|
protected |
Definition at line 46 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), processDeflated(), and ZipOutputEntryBase().
|
protected |
Definition at line 43 of file ZipOutputEntry.hxx.
Referenced by ZipOutputEntryBase().
|
protected |
Definition at line 47 of file ZipOutputEntry.hxx.
Referenced by closeEntry(), processDeflated(), and ZipOutputEntryBase().
|
protected |
Definition at line 44 of file ZipOutputEntry.hxx.
Referenced by ZipOutputEntryInThread::closeBufferFile(), ZipOutputEntryInThread::createBufferFile(), ZipOutputEntryInThread::deleteBufferFile(), ZipOutputEntryInThread::Task::doWork(), processDeflated(), and ZipOutputEntryBase().