LibreOffice Module ucb (master) 1
|
#include <filstr.hxx>
Public Member Functions | |
XStream_impl (const OUString &aUncPath, bool bLock) | |
sal_Int32 | CtorSuccess () const |
Returns an error code as given by filerror.hxx. More... | |
sal_Int32 | getMinorError () const |
virtual | ~XStream_impl () override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getInputStream () override |
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL | getOutputStream () override |
virtual void SAL_CALL | truncate () override |
sal_Int32 SAL_CALL | readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override |
sal_Int32 SAL_CALL | readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override |
void SAL_CALL | skipBytes (sal_Int32 nBytesToSkip) override |
sal_Int32 SAL_CALL | available () override |
void SAL_CALL | closeInput () override |
void SAL_CALL | seek (sal_Int64 location) override |
sal_Int64 SAL_CALL | getPosition () override |
sal_Int64 SAL_CALL | getLength () override |
void SAL_CALL | writeBytes (const css::uno::Sequence< sal_Int8 > &aData) override |
void SAL_CALL | flush () override |
void SAL_CALL | closeOutput () override |
virtual void SAL_CALL | waitForCompletion () override |
virtual sal_Int32 | readSomeBytes (sal_Int8 *aData, sal_Int32 nMaxBytesToRead) override |
Private Member Functions | |
void | closeStream () |
Private Attributes | |
std::mutex | m_aMutex |
bool | m_bInputStreamCalled |
bool | m_bOutputStreamCalled |
bool | m_nIsOpen |
ReconnectingFile | m_aFile |
sal_Int32 | m_nErrorCode |
sal_Int32 | m_nMinorErrorCode |
Definition at line 40 of file filstr.hxx.
XStream_impl::XStream_impl | ( | const OUString & | aUncPath, |
bool | bLock | ||
) |
Definition at line 45 of file filstr.cxx.
References fileaccess::ReconnectingFile::close(), err, m_aFile, m_nErrorCode, m_nIsOpen, m_nMinorErrorCode, fileaccess::ReconnectingFile::open(), and TASKHANDLING_OPEN_FOR_STREAM.
|
overridevirtual |
Definition at line 70 of file filstr.cxx.
References closeStream().
|
override |
Definition at line 185 of file filstr.cxx.
References getLength(), getPosition(), and SAL_MAX_INT32.
|
override |
Definition at line 225 of file filstr.cxx.
References closeStream(), m_aMutex, m_bInputStreamCalled, and m_bOutputStreamCalled.
|
override |
Definition at line 236 of file filstr.cxx.
References closeStream(), m_aMutex, m_bInputStreamCalled, and m_bOutputStreamCalled.
|
private |
css::io::NotConnectedException | |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 208 of file filstr.cxx.
References fileaccess::ReconnectingFile::close(), err, ex, m_aFile, and m_nIsOpen.
Referenced by closeInput(), closeOutput(), and ~XStream_impl().
|
inline |
Returns an error code as given by filerror.hxx.
Definition at line 58 of file filstr.hxx.
References m_nErrorCode.
|
override |
Definition at line 275 of file filstr.cxx.
|
overridevirtual |
Definition at line 88 of file filstr.cxx.
References m_aMutex, and m_bInputStreamCalled.
|
override |
Definition at line 266 of file filstr.cxx.
References fileaccess::ReconnectingFile::getSize(), m_aFile, and THROW_WHERE.
Referenced by available().
|
inline |
Definition at line 59 of file filstr.hxx.
References m_nMinorErrorCode.
|
overridevirtual |
Definition at line 99 of file filstr.cxx.
References m_aMutex, and m_bOutputStreamCalled.
|
override |
Definition at line 257 of file filstr.cxx.
References fileaccess::ReconnectingFile::getPos(), m_aFile, and THROW_WHERE.
Referenced by available().
|
override |
Definition at line 123 of file filstr.cxx.
References aData, fileaccess::ReconnectingFile::close(), m_aFile, m_nIsOpen, fileaccess::ReconnectingFile::read(), and THROW_WHERE.
|
override |
|
overridevirtual |
Definition at line 152 of file filstr.cxx.
References m_aFile, m_nIsOpen, pData, fileaccess::ReconnectingFile::read(), and THROW_WHERE.
|
override |
Definition at line 247 of file filstr.cxx.
References m_aFile, fileaccess::ReconnectingFile::setPos(), and THROW_WHERE.
|
override |
Definition at line 178 of file filstr.cxx.
References m_aFile, and fileaccess::ReconnectingFile::setPos().
|
overridevirtual |
Definition at line 109 of file filstr.cxx.
References m_aFile, fileaccess::ReconnectingFile::setPos(), fileaccess::ReconnectingFile::setSize(), and THROW_WHERE.
|
overridevirtual |
Definition at line 278 of file filstr.cxx.
References m_aFile, m_nIsOpen, and fileaccess::ReconnectingFile::sync().
|
override |
Definition at line 193 of file filstr.cxx.
References aData, length, m_aFile, p, THROW_WHERE, and fileaccess::ReconnectingFile::write().
|
private |
Definition at line 138 of file filstr.hxx.
Referenced by closeStream(), getLength(), getPosition(), readBytes(), readSomeBytes(), seek(), skipBytes(), truncate(), waitForCompletion(), writeBytes(), and XStream_impl().
|
private |
Definition at line 134 of file filstr.hxx.
Referenced by closeInput(), closeOutput(), getInputStream(), and getOutputStream().
|
private |
Definition at line 135 of file filstr.hxx.
Referenced by closeInput(), closeOutput(), and getInputStream().
|
private |
Definition at line 135 of file filstr.hxx.
Referenced by closeInput(), closeOutput(), and getOutputStream().
|
private |
Definition at line 140 of file filstr.hxx.
Referenced by CtorSuccess(), and XStream_impl().
|
private |
Definition at line 136 of file filstr.hxx.
Referenced by closeStream(), readBytes(), readSomeBytes(), waitForCompletion(), and XStream_impl().
|
private |
Definition at line 141 of file filstr.hxx.
Referenced by getMinorError(), and XStream_impl().