LibreOffice Module package (master) 1
|
#include <ZipOutputEntry.hxx>
Public Member Functions | |
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 () |
Protected Member Functions | |
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 |
Private Attributes | |
css::uno::Sequence< sal_Int8 > | m_aDeflateBuffer |
ZipUtils::Deflater | m_aDeflater |
Additional Inherited Members | |
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 85 of file ZipOutputEntry.hxx.
ZipOutputEntry::ZipOutputEntry | ( | const css::uno::Reference< css::io::XOutputStream > & | rxOutStream, |
const css::uno::Reference< css::uno::XComponentContext > & | rxContext, | ||
ZipEntry & | rEntry, | ||
ZipPackageStream * | pStream, | ||
bool | bEncrypt | ||
) |
|
protected |
|
overrideprotectedvirtual |
Implements ZipOutputEntryBase.
Definition at line 228 of file ZipOutputEntry.cxx.
References m_aDeflater, and ZipUtils::Deflater::reset().
|
protected |
Definition at line 205 of file ZipOutputEntry.cxx.
References ZipUtils::Deflater::doDeflateSegment(), m_aDeflateBuffer, m_aDeflater, nLength, and ZipOutputEntryBase::processDeflated().
Referenced by finishDeflater(), and write().
|
overrideprotectedvirtual |
Implements ZipOutputEntryBase.
Definition at line 211 of file ZipOutputEntry.cxx.
References doDeflate(), ZipUtils::Deflater::finish(), ZipUtils::Deflater::finished(), and m_aDeflater.
|
overrideprotectedvirtual |
Implements ZipOutputEntryBase.
Definition at line 218 of file ZipOutputEntry.cxx.
References ZipUtils::Deflater::getTotalIn(), and m_aDeflater.
|
overrideprotectedvirtual |
Implements ZipOutputEntryBase.
Definition at line 223 of file ZipOutputEntry.cxx.
References ZipUtils::Deflater::getTotalOut(), and m_aDeflater.
|
overrideprotectedvirtual |
Implements ZipOutputEntryBase.
Definition at line 233 of file ZipOutputEntry.cxx.
References ZipUtils::Deflater::finished(), and m_aDeflater.
void ZipOutputEntry::write | ( | const css::uno::Sequence< sal_Int8 > & | rBuffer | ) |
Definition at line 194 of file ZipOutputEntry.cxx.
References doDeflate(), ZipUtils::Deflater::finished(), m_aDeflater, ZipUtils::Deflater::needsInput(), ZipOutputEntryBase::processInput(), and ZipUtils::Deflater::setInputSegment().
Referenced by ZipPackage::WriteContentTypes(), ZipPackage::WriteManifest(), and writeStream().
|
overridevirtual |
Implements ZipOutputEntryBase.
Definition at line 323 of file ZipOutputEntry.cxx.
References aSeq, ZipOutputEntryBase::closeEntry(), n_ConstBufferSize, nLength, and write().
Referenced by ZipOutputEntryInThread::Task::doWork(), and ZipPackageStream::saveChild().
|
private |
Definition at line 87 of file ZipOutputEntry.hxx.
Referenced by doDeflate().
|
private |
Definition at line 88 of file ZipOutputEntry.hxx.
Referenced by deflaterReset(), doDeflate(), finishDeflater(), getDeflaterTotalIn(), getDeflaterTotalOut(), isDeflaterFinished(), and write().