22#include <com/sun/star/io/NotConnectedException.hpp>
34 throw css::io::NotConnectedException();
45 throw css::io::NotConnectedException();
47 GError *pError=
nullptr;
48 if (!g_output_stream_write_all(G_OUTPUT_STREAM(
mpStream), rData.getConstArray(), rData.getLength(),
nullptr,
nullptr, &pError))
55 throw css::io::NotConnectedException();
57 GError *pError=
nullptr;
58 if (!g_output_stream_flush(G_OUTPUT_STREAM(
mpStream),
nullptr, &pError))
65 g_output_stream_close(G_OUTPUT_STREAM(
mpStream),
nullptr,
nullptr);
70 css::uno::Any aRet = ::cppu::queryInterface (
type,
71 static_cast< XOutputStream *
>(
this ) );
virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 > &aData) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &type) override
GFileOutputStream * mpStream
virtual void SAL_CALL closeOutput() override
virtual ~OutputStream() override
virtual void SAL_CALL flush() override
OutputStream(GFileOutputStream *pStream)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &type) override
void convertToIOException(GError *pError, const css::uno::Reference< css::uno::XInterface > &rContext)