diff options
Diffstat (limited to 'unotools/source/streaming/streamhelper.cxx')
-rw-r--r-- | unotools/source/streaming/streamhelper.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx index e2881b7b9a55..d3f41ad5e286 100644 --- a/unotools/source/streaming/streamhelper.cxx +++ b/unotools/source/streaming/streamhelper.cxx @@ -23,7 +23,6 @@ namespace utl { sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) - throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) { if (!m_xLockBytes.Is()) throw css::io::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this)); @@ -49,18 +48,18 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& return nRead; } -void SAL_CALL OInputStreamHelper::seek( sal_Int64 location ) throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException, std::exception) +void SAL_CALL OInputStreamHelper::seek( sal_Int64 location ) { ::osl::MutexGuard aGuard( m_aMutex ); m_nActPos = location; } -sal_Int64 SAL_CALL OInputStreamHelper::getPosition( ) throw(css::io::IOException, css::uno::RuntimeException, std::exception) +sal_Int64 SAL_CALL OInputStreamHelper::getPosition( ) { return m_nActPos; } -sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(css::io::IOException, css::uno::RuntimeException, std::exception) +sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) { if (!m_xLockBytes.Is()) return 0; @@ -73,14 +72,12 @@ sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(css::io::IOException, sal_Int32 SAL_CALL OInputStreamHelper::readSomeBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) - throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) { // read all data desired return readBytes(aData, nMaxBytesToRead); } void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip) - throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if (!m_xLockBytes.Is()) @@ -93,7 +90,6 @@ void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip) } sal_Int32 SAL_CALL OInputStreamHelper::available() - throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if (!m_xLockBytes.Is()) @@ -103,7 +99,6 @@ sal_Int32 SAL_CALL OInputStreamHelper::available() } void SAL_CALL OInputStreamHelper::closeInput() - throw (css::io::NotConnectedException, css::io::IOException, css::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if (!m_xLockBytes.Is()) |