diff options
Diffstat (limited to 'package/source/zippackage/ZipPackageBuffer.cxx')
-rw-r--r-- | package/source/zippackage/ZipPackageBuffer.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/package/source/zippackage/ZipPackageBuffer.cxx b/package/source/zippackage/ZipPackageBuffer.cxx index d6a20eb0b96c..2fbbd01e234c 100644 --- a/package/source/zippackage/ZipPackageBuffer.cxx +++ b/package/source/zippackage/ZipPackageBuffer.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,11 +43,11 @@ ZipPackageBuffer::ZipPackageBuffer(sal_Int64 nNewBufferSize ) , m_bMustInitBuffer ( sal_True ) { } -ZipPackageBuffer::~ZipPackageBuffer(void) +ZipPackageBuffer::~ZipPackageBuffer(void) { } -sal_Int32 SAL_CALL ZipPackageBuffer::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) +sal_Int32 SAL_CALL ZipPackageBuffer::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { if (nBytesToRead < 0) @@ -62,12 +62,12 @@ sal_Int32 SAL_CALL ZipPackageBuffer::readBytes( Sequence< sal_Int8 >& aData, sal return nBytesToRead; } -sal_Int32 SAL_CALL ZipPackageBuffer::readSomeBytes( Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) +sal_Int32 SAL_CALL ZipPackageBuffer::readSomeBytes( Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { return readBytes(aData, nMaxBytesToRead); } -void SAL_CALL ZipPackageBuffer::skipBytes( sal_Int32 nBytesToSkip ) +void SAL_CALL ZipPackageBuffer::skipBytes( sal_Int32 nBytesToSkip ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { if (nBytesToSkip < 0) @@ -78,16 +78,16 @@ void SAL_CALL ZipPackageBuffer::skipBytes( sal_Int32 nBytesToSkip ) m_nCurrent+=nBytesToSkip; } -sal_Int32 SAL_CALL ZipPackageBuffer::available( ) +sal_Int32 SAL_CALL ZipPackageBuffer::available( ) throw(NotConnectedException, IOException, RuntimeException) { return static_cast < sal_Int32 > (m_nEnd - m_nCurrent); } -void SAL_CALL ZipPackageBuffer::closeInput( ) +void SAL_CALL ZipPackageBuffer::closeInput( ) throw(NotConnectedException, IOException, RuntimeException) { } -void SAL_CALL ZipPackageBuffer::writeBytes( const Sequence< sal_Int8 >& aData ) +void SAL_CALL ZipPackageBuffer::writeBytes( const Sequence< sal_Int8 >& aData ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { sal_Int64 nDataLen = aData.getLength(), nCombined = m_nEnd + nDataLen; @@ -110,27 +110,27 @@ void SAL_CALL ZipPackageBuffer::writeBytes( const Sequence< sal_Int8 >& aData ) if (m_nCurrent>m_nEnd) m_nEnd = m_nCurrent; } -void SAL_CALL ZipPackageBuffer::flush( ) +void SAL_CALL ZipPackageBuffer::flush( ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { } -void SAL_CALL ZipPackageBuffer::closeOutput( ) +void SAL_CALL ZipPackageBuffer::closeOutput( ) throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException) { } -void SAL_CALL ZipPackageBuffer::seek( sal_Int64 location ) +void SAL_CALL ZipPackageBuffer::seek( sal_Int64 location ) throw( IllegalArgumentException, IOException, RuntimeException) { if ( location > m_nEnd || location < 0 ) throw IllegalArgumentException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ), uno::Reference< uno::XInterface >(), 1 ); m_nCurrent = location; } -sal_Int64 SAL_CALL ZipPackageBuffer::getPosition( ) +sal_Int64 SAL_CALL ZipPackageBuffer::getPosition( ) throw(IOException, RuntimeException) { return m_nCurrent; } -sal_Int64 SAL_CALL ZipPackageBuffer::getLength( ) +sal_Int64 SAL_CALL ZipPackageBuffer::getLength( ) throw(IOException, RuntimeException) { return m_nEnd; |