summaryrefslogtreecommitdiff
path: root/package/source/zipapi/ZipOutputStream.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2000-12-04 10:30:09 +0000
committerMartin Gallwey <mtg@openoffice.org>2000-12-04 10:30:09 +0000
commit2056f50eadd8c850f32e5b7c7fa6fc770db16264 (patch)
treeb95b8a2228f84a22c2d69c8650d86494678357e6 /package/source/zipapi/ZipOutputStream.cxx
parent8c42ca8d118b0be4ece362f5f06f0c2629e81c75 (diff)
#80556# improved exception handling
Diffstat (limited to 'package/source/zipapi/ZipOutputStream.cxx')
-rw-r--r--package/source/zipapi/ZipOutputStream.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx
index cea7fd7914eb..3bbbc88364e7 100644
--- a/package/source/zipapi/ZipOutputStream.cxx
+++ b/package/source/zipapi/ZipOutputStream.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipOutputStream.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: mtg $ $Date: 2000-12-01 10:49:47 $
+ * last change: $Author: mtg $ $Date: 2000-12-04 11:30:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -249,6 +249,7 @@ void ZipOutputStream::doDeflate()
}
}
void ZipOutputStream::writeEND(sal_uInt32 nOffset, sal_uInt32 nLength)
+ throw(io::IOException, uno::RuntimeException)
{
sal_Int16 i=0, nCommentLength = static_cast < sal_Int16 > (sComment.getLength());
const sal_Unicode *pChar = sComment.getStr();
@@ -270,6 +271,7 @@ void ZipOutputStream::writeEND(sal_uInt32 nOffset, sal_uInt32 nLength)
aChucker.writeBytes(aSequence);
}
void ZipOutputStream::writeCEN( const package::ZipEntry &rEntry )
+ throw(io::IOException, uno::RuntimeException)
{
sal_Int16 nNameLength = static_cast < sal_Int16 > ( rEntry.sName.getLength() ) ,
nCommentLength = static_cast < sal_Int16 > ( rEntry.sComment.getLength() ) ,
@@ -323,6 +325,7 @@ void ZipOutputStream::writeCEN( const package::ZipEntry &rEntry )
}
}
void ZipOutputStream::writeEXT( const package::ZipEntry &rEntry )
+ throw(io::IOException, uno::RuntimeException)
{
aChucker << EXTSIG;
aChucker << rEntry.nCrc;
@@ -331,6 +334,7 @@ void ZipOutputStream::writeEXT( const package::ZipEntry &rEntry )
}
void ZipOutputStream::writeLOC( const package::ZipEntry &rEntry )
+ throw(io::IOException, uno::RuntimeException)
{
sal_Int16 nNameLength = static_cast < sal_Int16 > (rEntry.sName.getLength());
sal_Int16 i=0;