summaryrefslogtreecommitdiff
path: root/unotools/source/streaming/streamhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/streaming/streamhelper.cxx')
-rw-r--r--unotools/source/streaming/streamhelper.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index b7745491a814..f36295a821cf 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -32,14 +32,14 @@ void SAL_CALL OInputStreamHelper::release() throw ()
InputStreamHelper_Base::release();
}
-sal_Int32 SAL_CALL OInputStreamHelper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
- throw(stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, staruno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
+ throw(stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, css::uno::RuntimeException, std::exception)
{
if (!m_xLockBytes.Is())
- throw stario::NotConnectedException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this));
if (nBytesToRead < 0)
- throw stario::BufferSizeExceededException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::BufferSizeExceededException(OUString(), static_cast<css::uno::XWeak*>(this));
::osl::MutexGuard aGuard( m_aMutex );
aData.realloc(nBytesToRead);
@@ -49,7 +49,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(staruno::Sequence< sal_Int8 >&
m_nActPos += nRead;
if (nError != ERRCODE_NONE)
- throw stario::IOException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::IOException(OUString(), static_cast<css::uno::XWeak*>(this));
// adjust sequence if data read is lower than the desired data
if (nRead < (sal_uInt32)nBytesToRead)
@@ -80,43 +80,43 @@ sal_Int64 SAL_CALL OInputStreamHelper::getLength( ) throw(::com::sun::star::io:
return aStat.nSize;
}
-sal_Int32 SAL_CALL OInputStreamHelper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData,
+sal_Int32 SAL_CALL OInputStreamHelper::readSomeBytes(css::uno::Sequence< sal_Int8 >& aData,
sal_Int32 nMaxBytesToRead)
- throw (stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, staruno::RuntimeException, std::exception)
+ throw (stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, css::uno::RuntimeException, std::exception)
{
// read all data desired
return readBytes(aData, nMaxBytesToRead);
}
void SAL_CALL OInputStreamHelper::skipBytes(sal_Int32 nBytesToSkip)
- throw (stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, staruno::RuntimeException, std::exception)
+ throw (stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
- throw stario::NotConnectedException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this));
if (nBytesToSkip < 0)
- throw stario::BufferSizeExceededException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::BufferSizeExceededException(OUString(), static_cast<css::uno::XWeak*>(this));
m_nActPos += nBytesToSkip;
}
sal_Int32 SAL_CALL OInputStreamHelper::available()
- throw (stario::NotConnectedException, stario::IOException, staruno::RuntimeException, std::exception)
+ throw (stario::NotConnectedException, stario::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
- throw stario::NotConnectedException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this));
return m_nAvailable;
}
void SAL_CALL OInputStreamHelper::closeInput()
- throw (stario::NotConnectedException, stario::IOException, staruno::RuntimeException, std::exception)
+ throw (stario::NotConnectedException, stario::IOException, css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if (!m_xLockBytes.Is())
- throw stario::NotConnectedException(OUString(), static_cast<staruno::XWeak*>(this));
+ throw stario::NotConnectedException(OUString(), static_cast<css::uno::XWeak*>(this));
m_xLockBytes = NULL;
}