22#include <com/sun/star/io/BufferSizeExceededException.hpp>
23#include <com/sun/star/io/NotConnectedException.hpp>
34 throw css::io::NotConnectedException();
50 g_input_stream_close(G_INPUT_STREAM(
mpStream),
nullptr,
nullptr);
58 css::uno::Sequence<sal_Int8> data;
65 throw css::io::NotConnectedException();
69 aData.realloc( nBytesToRead );
71 catch (
const css::uno::Exception & )
73 throw css::io::BufferSizeExceededException();
77 GError *pError=
nullptr;
78 if (!g_input_stream_read_all(G_INPUT_STREAM(
mpStream),
aData.getArray(), nBytesToRead, &nBytesRead,
nullptr, &pError))
80 aData.realloc(nBytesRead);
constexpr OUStringLiteral aData
void convertToIOException(GError *pError, const css::uno::Reference< css::uno::XInterface > &rContext)