12#include <com/sun/star/io/IOException.hpp>
36 uno::Any aRet = ::cppu::queryInterface( rType,
static_cast< XOutputStream*
>(
this ) );
38 return aRet.
hasValue() ? aRet : OWeakObject::queryInterface( rType );
43 OWeakObject::acquire();
48 OWeakObject::release();
56 throw io::IOException( );
60 m_pStream->write(
reinterpret_cast< const char*
>(
aData.getConstArray( ) ),
aData.getLength( ) );
62 catch (
const std::ios_base::failure& e )
64 SAL_INFO(
"ucb.ucp.cmis",
"Exception caught when calling write: " << e.what() );
65 throw io::IOException( );
74 throw io::IOException( );
80 catch (
const std::ios_base::failure& e )
82 SAL_INFO(
"ucb.ucp.cmis",
"Exception caught when calling flush: " << e.what() );
83 throw io::IOException( );
92 throw io::IOException( );
94 m_pStream->setstate( std::ios_base::eofbit );
virtual void SAL_CALL flush() override
virtual ~StdOutputStream() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 > &aData) override
StdOutputStream(boost::shared_ptr< std::ostream > pStream)
virtual void SAL_CALL closeOutput() override
boost::shared_ptr< std::ostream > m_pStream
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL acquire() noexcept override
GtkMediaStream * m_pStream
#define SAL_INFO(area, stream)
constexpr OUStringLiteral aData