LibreOffice Module unotools (master) 1
|
helper class for wrapping an SvStream into a com.sun.star.io::XInputStream More...
#include <streamwrap.hxx>
Public Member Functions | |
OInputStreamWrapper (SvStream &_rStream) | |
OInputStreamWrapper (SvStream *pStream, bool bOwner=false) | |
OInputStreamWrapper (std::unique_ptr< SvStream > pStream) | |
virtual | ~OInputStreamWrapper () override |
virtual sal_Int32 SAL_CALL | readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override |
virtual sal_Int32 SAL_CALL | readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override |
virtual void SAL_CALL | skipBytes (sal_Int32 nBytesToSkip) override |
virtual sal_Int32 SAL_CALL | available () override |
virtual void SAL_CALL | closeInput () override |
virtual sal_Int32 | readSomeBytes (sal_Int8 *aData, sal_Int32 nMaxBytesToRead) final override |
Protected Member Functions | |
OInputStreamWrapper () | |
void | SetStream (SvStream *_pStream, bool bOwner) |
void | checkConnected () const |
throws a NotConnectedException if the object is not connected anymore More... | |
void | checkError () const |
throws an exception according to the error flag of m_pSvStream More... | |
Protected Attributes | |
std::mutex | m_aMutex |
SvStream * | m_pSvStream |
bool | m_bSvStreamOwner: 1 |
helper class for wrapping an SvStream into a com.sun.star.io::XInputStream
Definition at line 45 of file streamwrap.hxx.
|
inlineprotected |
Definition at line 51 of file streamwrap.hxx.
utl::OInputStreamWrapper::OInputStreamWrapper | ( | SvStream & | _rStream | ) |
Definition at line 35 of file streamwrap.cxx.
utl::OInputStreamWrapper::OInputStreamWrapper | ( | SvStream * | pStream, |
bool | bOwner = false |
||
) |
Definition at line 41 of file streamwrap.cxx.
utl::OInputStreamWrapper::OInputStreamWrapper | ( | std::unique_ptr< SvStream > | pStream | ) |
Definition at line 47 of file streamwrap.cxx.
|
overridevirtual |
Definition at line 53 of file streamwrap.cxx.
References m_bSvStreamOwner, and m_pSvStream.
|
overridevirtual |
Definition at line 121 of file streamwrap.cxx.
References checkConnected(), checkError(), m_aMutex, m_pSvStream, SvStream::remainingSize(), and SAL_MAX_INT32.
|
protected |
throws a NotConnectedException if the object is not connected anymore
Definition at line 144 of file streamwrap.cxx.
References m_pSvStream.
Referenced by available(), checkError(), readBytes(), and readSomeBytes().
|
protected |
throws an exception according to the error flag of m_pSvStream
Definition at line 150 of file streamwrap.cxx.
References checkConnected(), ERRCODE_NONE, and m_pSvStream.
Referenced by available(), readBytes(), readSomeBytes(), and skipBytes().
|
overridevirtual |
Definition at line 132 of file streamwrap.cxx.
References m_aMutex, m_bSvStreamOwner, and m_pSvStream.
|
overridevirtual |
Definition at line 59 of file streamwrap.cxx.
References aData, checkConnected(), checkError(), m_aMutex, m_pSvStream, o3tl::make_unsigned(), and SvStream::ReadBytes().
Referenced by readSomeBytes().
|
overridevirtual |
Definition at line 96 of file streamwrap.cxx.
References aData, checkError(), SvStream::eof(), m_pSvStream, and readBytes().
|
finaloverridevirtual |
Definition at line 81 of file streamwrap.cxx.
References checkConnected(), checkError(), m_aMutex, m_pSvStream, pData, and SvStream::ReadBytes().
|
inlineprotected |
Definition at line 53 of file streamwrap.hxx.
|
overridevirtual |
Definition at line 112 of file streamwrap.cxx.
References checkError(), m_aMutex, m_pSvStream, and SvStream::SeekRel().
|
protected |
Definition at line 48 of file streamwrap.hxx.
Referenced by available(), closeInput(), readBytes(), readSomeBytes(), and skipBytes().
|
protected |
Definition at line 50 of file streamwrap.hxx.
Referenced by closeInput(), and ~OInputStreamWrapper().
|
protected |
Definition at line 49 of file streamwrap.hxx.
Referenced by available(), checkConnected(), checkError(), closeInput(), readBytes(), readSomeBytes(), skipBytes(), and ~OInputStreamWrapper().