summaryrefslogtreecommitdiff
path: root/package/source/zippackage/ZipPackageStream.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-02-01 18:15:02 +0000
committerKurt Zenker <kz@openoffice.org>2006-02-01 18:15:02 +0000
commitf5beb98843b2b9899504fa519345ee081a1397bb (patch)
tree04285030b81622f40d43a51d4801a626aa9a834e /package/source/zippackage/ZipPackageStream.cxx
parent662e39c0a51707d2ea7f622ec8616a47a2d3cc0f (diff)
INTEGRATION: CWS mav19 (1.45.8); FILE MERGED
2006/01/03 13:14:56 mav 1.45.8.1: #i59147# use central helper
Diffstat (limited to 'package/source/zippackage/ZipPackageStream.cxx')
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index b10a734257fd..481f07787497 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ZipPackageStream.cxx,v $
*
- * $Revision: 1.45 $
+ * $Revision: 1.46 $
*
- * last change: $Author: rt $ $Date: 2005-10-19 12:49:50 $
+ * last change: $Author: kz $ $Date: 2006-02-01 19:15:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -80,6 +80,7 @@
#endif
#include <comphelper/seekableinput.hxx>
+#include <comphelper/storagehelper.hxx>
using namespace com::sun::star::packages::zip::ZipConstants;
@@ -92,8 +93,6 @@ using namespace rtl;
Sequence < sal_Int8 > ZipPackageStream::aImplementationId = Sequence < sal_Int8 > ();
-void copyInputToOutput_Impl( const Reference< io::XInputStream >& aIn, const Reference< io::XOutputStream >& aOut );
-
ZipPackageStream::ZipPackageStream ( ZipPackage & rNewPackage,
const Reference< XMultiServiceFactory >& xFactory,
@@ -212,7 +211,7 @@ uno::Reference< io::XInputStream > ZipPackageStream::GetRawEncrStreamNoHeaderCop
throw io::IOException(); // TODO:
// copy the raw stream to the temporary file starting from the current position
- copyInputToOutput_Impl( GetOwnSeekStream(), xTempOut );
+ ::comphelper::OStorageHelper::CopyInputToOutput( GetOwnSeekStream(), xTempOut );
xTempOut->closeOutput();
xTempSeek->seek( 0 );
@@ -308,7 +307,7 @@ Reference< io::XInputStream > ZipPackageStream::TryToGetRawFromDataStream( sal_B
throw io::IOException(); // TODO:
// copy the raw stream to the temporary file
- copyInputToOutput_Impl( xInRaw, xTempOut );
+ ::comphelper::OStorageHelper::CopyInputToOutput( xInRaw, xTempOut );
xTempOut->closeOutput();
xTempSeek->seek( 0 );