22#include <com/sun/star/io/IOException.hpp>
23#include <com/sun/star/io/NotConnectedException.hpp>
24#include <com/sun/star/io/TempFile.hpp>
25#include <com/sun/star/io/XOutputStream.hpp>
40 const uno::Reference< io::XOutputStream >& xOut )
50 uno::Sequence< sal_Int8 > aTempBuf( aSequence.getConstArray(), nRead );
51 xOut->writeBytes( aTempBuf );
54 xOut->writeBytes( aSequence );
61 uno::Reference< io::XInputStream > xInStream,
62 uno::Reference< uno::XComponentContext > xContext )
64, m_xOriginalStream(
std::move( xInStream ))
67 throw uno::RuntimeException();
77 const uno::Reference< io::XInputStream >& xInStream,
78 const uno::Reference< uno::XComponentContext >& rxContext )
81 uno::Reference< io::XSeekable > xSeek( xInStream, uno::UNO_QUERY );
94 throw uno::RuntimeException();
96 uno::Reference< io::XOutputStream > xTempOut(
98 uno::UNO_QUERY_THROW );
101 xTempOut->closeOutput();
103 uno::Reference< io::XSeekable > xTempSeek( xTempOut, uno::UNO_QUERY );
104 if ( xTempSeek.is() )
106 xTempSeek->seek( 0 );
114 throw io::IOException(
"no m_xCopyInput");
121 std::scoped_lock aGuard(
m_aMutex );
124 throw io::NotConnectedException();
134 std::scoped_lock aGuard(
m_aMutex );
137 throw io::NotConnectedException();
147 std::scoped_lock aGuard(
m_aMutex );
150 throw io::NotConnectedException();
160 std::scoped_lock aGuard(
m_aMutex );
163 throw io::NotConnectedException();
173 std::scoped_lock aGuard(
m_aMutex );
176 throw io::NotConnectedException();
195 std::scoped_lock aGuard(
m_aMutex );
198 throw io::NotConnectedException();
208 std::scoped_lock aGuard(
m_aMutex );
211 throw io::NotConnectedException();
221 std::scoped_lock aGuard(
m_aMutex );
224 throw io::NotConnectedException();
Reference< XComponentContext > m_xContext
constexpr OUStringLiteral aData
static void copyInputToOutput_Impl(const uno::Reference< io::XInputStream > &xIn, const uno::Reference< io::XOutputStream > &xOut)
const sal_Int32 nConstBufferSize