summaryrefslogtreecommitdiff
path: root/package/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-01-13 20:47:46 -0500
committerKohei Yoshida <libreoffice@kohei.us>2017-01-14 17:30:30 +0000
commit4ae705d02df0ddf75b97d0e94add6994626f487e (patch)
tree019b0b47b2d777a83c4996ffec2022384ed72755 /package/inc
parentefce216ca5d2b852c9fccc52ee68d1e27279d900 (diff)
tdf#97597: Ensure that each parsing thread has its own buffer.
Change-Id: I93077f954a49b3922930e4fc86c80228be0f4dd2 Reviewed-on: https://gerrit.libreoffice.org/33069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ZipFile.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index 9d1a6da0d2bc..e84ace2abd11 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -64,9 +64,10 @@ class ZipFile
const css::uno::Reference < css::uno::XComponentContext > m_xContext;
bool bRecoveryMode;
+ bool mbUseBufferedStream;
// aMediaType parameter is used only for raw stream header creation
- css::uno::Reference < css::io::XInputStream > createUnbufferedStream(
+ css::uno::Reference < css::io::XInputStream > createStreamForZipEntry(
const rtl::Reference<SotMutexHolder>& aMutexHolder,
ZipEntry & rEntry,
const ::rtl::Reference < EncryptionData > &rData,
@@ -102,6 +103,8 @@ public:
EntryHash& GetEntryHash() { return aEntries; }
+ void setUseBufferedStream( bool b );
+
void setInputStream ( const css::uno::Reference < css::io::XInputStream >& xNewStream );
css::uno::Reference< css::io::XInputStream > getRawData(
ZipEntry& rEntry,