LibreOffice Module sot (master) 1
|
Public Member Functions | |
virtual std::size_t | GetData (void *pData, std::size_t nSize) override |
virtual std::size_t | PutData (const void *pData, std::size_t nSize) override |
virtual sal_uInt64 | SeekPos (sal_uInt64 nPos) override |
virtual void | SetSize (sal_uInt64 nSize) override |
virtual void | FlushData () override |
virtual void | ResetError () override |
UCBStorageStream_Impl (const OUString &, StreamMode, UCBStorageStream *, bool, bool bRepair, Reference< XProgressHandler > const &xProgress) | |
void | Free () |
bool | Init () |
bool | Clear () |
sal_Int16 | Commit () |
void | Revert () |
BaseStorage * | CreateStorage () |
sal_uInt64 | GetSize () |
sal_uInt64 | ReadSourceWriteTemporary (sal_uInt64 aLength) |
void | ReadSourceWriteTemporary () |
void | CopySourceToTemporary () |
void | SetError (ErrCode nError) |
void | PrepareCachedForReopen (StreamMode nMode) |
void | SetError (ErrCode nErrorCode) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Public Member Functions inherited from SvStream | |
SvStream () | |
SvStream (SvLockBytes *pLockBytes) | |
virtual | ~SvStream () |
SvLockBytes * | GetLockBytes () const |
ErrCode | GetError () const |
ErrCode const & | GetErrorCode () const |
void | SetError (ErrCode nErrorCode) |
virtual void | ResetError () |
void | SetEndian (SvStreamEndian SvStreamEndian) |
SvStreamEndian | GetEndian () const |
bool | IsEndianSwap () const |
void | SetCompressMode (SvStreamCompressFlags nNewMode) |
SvStreamCompressFlags | GetCompressMode () const |
void | SetCryptMaskKey (const OString &rCryptMaskKey) |
void | SetStreamCharSet (rtl_TextEncoding eCharSet) |
rtl_TextEncoding | GetStreamCharSet () const |
void | SetLineDelimiter (LineEnd eLineEnd) |
LineEnd | GetLineDelimiter () const |
SvStream & | ReadUInt16 (sal_uInt16 &rUInt16) |
SvStream & | ReadUInt32 (sal_uInt32 &rUInt32) |
SvStream & | ReadUInt64 (sal_uInt64 &rUInt64) |
SvStream & | ReadInt16 (sal_Int16 &rInt16) |
SvStream & | ReadInt32 (sal_Int32 &rInt32) |
SvStream & | ReadInt64 (sal_Int64 &rInt64) |
SvStream & | ReadSChar (signed char &rChar) |
SvStream & | ReadChar (char &rChar) |
SvStream & | ReadUChar (unsigned char &rChar) |
SvStream & | ReadUtf16 (sal_Unicode &rUtf16) |
SvStream & | ReadCharAsBool (bool &rBool) |
SvStream & | ReadFloat (float &rFloat) |
SvStream & | ReadDouble (double &rDouble) |
SvStream & | ReadStream (SvStream &rStream) |
SvStream & | WriteUInt16 (sal_uInt16 nUInt16) |
SvStream & | WriteUInt32 (sal_uInt32 nUInt32) |
SvStream & | WriteUInt64 (sal_uInt64 nuInt64) |
SvStream & | WriteInt16 (sal_Int16 nInt16) |
SvStream & | WriteInt32 (sal_Int32 nInt32) |
SvStream & | WriteInt64 (sal_Int64 nInt64) |
SvStream & | WriteUInt8 (sal_uInt8 nuInt8) |
SvStream & | WriteUnicode (sal_Unicode) |
SvStream & | WriteOString (std::string_view rStr) |
SvStream & | WriteStream (SvStream &rStream) |
sal_uInt64 | WriteStream (SvStream &rStream, sal_uInt64 nSize) |
SvStream & | WriteBool (bool b) |
SvStream & | WriteSChar (signed char nChar) |
SvStream & | WriteChar (char nChar) |
SvStream & | WriteUChar (unsigned char nChar) |
SvStream & | WriteFloat (float nFloat) |
SvStream & | WriteDouble (const double &rDouble) |
SvStream & | WriteNumberAsString (N n) |
std::size_t | ReadBytes (void *pData, std::size_t nSize) |
std::size_t | WriteBytes (const void *pData, std::size_t nSize) |
sal_uInt64 | Seek (sal_uInt64 nPos) |
sal_uInt64 | SeekRel (sal_Int64 nPos) |
sal_uInt64 | Tell () const |
virtual sal_uInt64 | TellEnd () |
sal_uInt64 | remainingSize () |
void | FlushBuffer () |
void | Flush () |
bool | SetStreamSize (sal_uInt64 nSize) |
bool | ReadLine (OStringBuffer &rStr, sal_Int32 nMaxBytesToRead=0xFFFE) |
bool | ReadLine (OString &rStr, sal_Int32 nMaxBytesToRead=0xFFFE) |
bool | WriteLine (std::string_view rStr) |
bool | ReadByteStringLine (OUString &rStr, rtl_TextEncoding eSrcCharSet, sal_Int32 nMaxBytesToRead=0xFFFE) |
bool | WriteByteStringLine (std::u16string_view rStr, rtl_TextEncoding eDestCharSet) |
void | StartWritingUnicodeText () |
void | StartReadingUnicodeText (rtl_TextEncoding eReadBomCharSet) |
SAL_DLLPRIVATE bool | ReadUniStringLine (OUString &rStr, sal_Int32 nMaxCodepointsToRead) |
OUString | ReadUniOrByteString (rtl_TextEncoding eSrcCharSet) |
SvStream & | WriteUniOrByteString (std::u16string_view rStr, rtl_TextEncoding eDestCharSet) |
bool | ReadUniOrByteStringLine (OUString &rStr, rtl_TextEncoding eSrcCharSet, sal_Int32 nMaxCodepointsToRead=0xFFFE) |
bool | WriteUnicodeOrByteText (std::u16string_view rStr, rtl_TextEncoding eDestCharSet) |
bool | WriteUnicodeOrByteText (std::u16string_view rStr) |
bool | WriteUniOrByteChar (sal_Unicode ch, rtl_TextEncoding eDestCharSet) |
bool | WriteUniOrByteChar (sal_Unicode ch) |
void | SetBufferSize (sal_uInt16 m_nBufSize) |
sal_uInt16 | GetBufferSize () const |
void | RefreshBuffer () |
bool | IsWritable () const |
StreamMode | GetStreamMode () const |
sal_Int32 | GetVersion () const |
void | SetVersion (sal_Int32 n) |
bool | eof () const |
bool | bad () const |
bool | good () const |
Public Attributes | |
UCBStorageStream * | m_pAntiImpl |
OUString | m_aOriginalName |
OUString | m_aName |
OUString | m_aURL |
OUString | m_aContentType |
OUString | m_aOriginalContentType |
OString | m_aKey |
::ucbhelper::Content * | m_pContent |
Reference< XInputStream > | m_rSource |
std::unique_ptr< SvStream > | m_pStream |
OUString | m_aTempURL |
ErrCode | m_nError |
StreamMode | m_nMode |
bool | m_bSourceRead |
bool | m_bModified |
bool | m_bCommited |
bool | m_bDirect |
bool | m_bIsOLEStorage |
Private Member Functions | |
virtual | ~UCBStorageStream_Impl () override |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Member Functions inherited from SvStream | |
virtual std::size_t | GetData (void *pData, std::size_t nSize) |
virtual std::size_t | PutData (const void *pData, std::size_t nSize) |
virtual sal_uInt64 | SeekPos (sal_uInt64 nPos) |
virtual void | FlushData () |
virtual void | SetSize (sal_uInt64 nSize) |
SAL_DLLPRIVATE void | ClearError () |
SAL_DLLPRIVATE void | ClearBuffer () |
SAL_DLLPRIVATE std::size_t | CryptAndWriteBuffer (const void *pStart, std::size_t nLen) |
SAL_DLLPRIVATE void | EncryptBuffer (void *pStart, std::size_t nLen) const |
Protected Attributes inherited from SvStream | |
sal_uInt64 | m_nBufFilePos |
StreamMode | m_eStreamMode |
bool | m_isWritable |
Definition at line 389 of file ucbstorage.cxx.
|
overrideprivatevirtual |
Definition at line 662 of file ucbstorage.cxx.
References m_aTempURL, m_pContent, m_pStream, and m_rSource.
UCBStorageStream_Impl::UCBStorageStream_Impl | ( | const OUString & | rName, |
StreamMode | nMode, | ||
UCBStorageStream * | pStream, | ||
bool | bDirect, | ||
bool | bRepair, | ||
Reference< XProgressHandler > const & | xProgress | ||
) |
Definition at line 620 of file ucbstorage.cxx.
References ERRCODE_IO_GENERAL, ERRCODE_NONE, INetURLObject::GetLastName(), comphelper::getProcessComponentContext(), m_aName, m_aOriginalName, m_aURL, m_pContent, SetError(), SVSTREAM_CANNOT_MAKE, and TRUNC.
bool UCBStorageStream_Impl::Clear | ( | ) |
Definition at line 1145 of file ucbstorage.cxx.
References DBG_ASSERT, Free(), and m_pAntiImpl.
sal_Int16 UCBStorageStream_Impl::Commit | ( | ) |
Definition at line 1027 of file ucbstorage.cxx.
References Any, COMMIT_RESULT_FAILURE, COMMIT_RESULT_NOTHING_TO_DO, COMMIT_RESULT_SUCCESS, CopySourceToTemporary(), DBG_ASSERT, ERRCODE_IO_GENERAL, Exception, ucbhelper::Content::executeCommand(), Free(), INetURLObject::GetMainURL(), m_aName, m_aTempURL, m_aURL, m_bCommited, m_bDirect, m_bIsOLEStorage, m_bModified, m_bSourceRead, m_nMode, m_pContent, INetURLObject::NONE, SetError(), INetURLObject::setName(), and xStream.
void UCBStorageStream_Impl::CopySourceToTemporary | ( | ) |
Definition at line 813 of file ucbstorage.cxx.
References m_bSourceRead, m_pStream, ReadSourceWriteTemporary(), and STREAM_SEEK_TO_END.
Referenced by Commit(), and FlushData().
BaseStorage * UCBStorageStream_Impl::CreateStorage | ( | ) |
Definition at line 1012 of file ucbstorage.cxx.
References m_bDirect, m_bIsOLEStorage, and Storage.
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 969 of file ucbstorage.cxx.
References CopySourceToTemporary(), m_bCommited, and m_pStream.
Referenced by UCBStorageStream::Commit().
void UCBStorageStream_Impl::Free | ( | ) |
Definition at line 1157 of file ucbstorage.cxx.
References m_aTempURL, m_pStream, m_rSource, nOpenFiles, and nOpenStreams.
Referenced by Clear(), Commit(), PrepareCachedForReopen(), Revert(), and UCBStorageStream::~UCBStorageStream().
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 827 of file ucbstorage.cxx.
References aData, Exception, Init(), m_bSourceRead, m_pStream, m_rSource, pData, and TOOLS_WARN_EXCEPTION.
Referenced by UCBStorageStream::Read().
sal_uInt64 UCBStorageStream_Impl::GetSize | ( | ) |
Definition at line 998 of file ucbstorage.cxx.
References Init(), m_pStream, nPos, ReadSourceWriteTemporary(), and STREAM_SEEK_TO_END.
Referenced by UCBStorageStream::GetSize().
bool UCBStorageStream_Impl::Init | ( | void | ) |
Definition at line 676 of file ucbstorage.cxx.
References utl::UcbStreamHelper::CreateStream(), DBG_ASSERT, Exception, m_aTempURL, m_bSourceRead, m_pContent, m_pStream, m_rSource, nOpenFiles, ucbhelper::Content::openStream(), SetError(), STREAM_SEEK_TO_END, and SVSTREAM_CANNOT_MAKE.
Referenced by UCBStorageStream::CopyTo(), GetData(), GetSize(), PutData(), SeekPos(), SetSize(), and UCBStorageStream::Tell().
void UCBStorageStream_Impl::PrepareCachedForReopen | ( | StreamMode | nMode | ) |
Definition at line 1173 of file ucbstorage.cxx.
References Free(), m_aTempURL, m_bSourceRead, and m_nMode.
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 864 of file ucbstorage.cxx.
References ERRCODE_IO_ACCESSDENIED, Init(), m_bModified, m_nMode, m_pStream, pData, and SetError().
Referenced by UCBStorageStream::Write().
void UCBStorageStream_Impl::ReadSourceWriteTemporary | ( | ) |
Definition at line 751 of file ucbstorage.cxx.
References aData, Exception, m_bSourceRead, m_pStream, m_rSource, and TOOLS_WARN_EXCEPTION.
Referenced by CopySourceToTemporary(), GetSize(), SeekPos(), and SetSize().
sal_uInt64 UCBStorageStream_Impl::ReadSourceWriteTemporary | ( | sal_uInt64 | aLength | ) |
Definition at line 778 of file ucbstorage.cxx.
References aData, Exception, m_bSourceRead, m_pStream, m_rSource, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 990 of file ucbstorage.cxx.
References ERRCODE_NONE, m_nError, m_pAntiImpl, SvStream::ResetError(), and StorageBase::ResetError().
void UCBStorageStream_Impl::Revert | ( | ) |
Definition at line 1094 of file ucbstorage.cxx.
References ERRCODE_IO_GENERAL, Exception, Free(), m_aContentType, m_aName, m_aOriginalContentType, m_aOriginalName, m_aTempURL, m_bCommited, m_bModified, m_bSourceRead, m_nMode, m_pAntiImpl, m_pContent, m_rSource, ucbhelper::Content::openStream(), SetError(), and SVSTREAM_CANNOT_MAKE.
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 883 of file ucbstorage.cxx.
References DBG_ASSERT, Init(), m_bSourceRead, m_nMode, m_pStream, nPos, ReadSourceWriteTemporary(), SAL_MAX_UINT32, and STREAM_SEEK_TO_END.
void UCBStorageStream_Impl::SetError | ( | ErrCode | nError | ) |
Definition at line 980 of file ucbstorage.cxx.
References m_nError, m_pAntiImpl, SvStream::SetError(), and StorageBase::SetError().
Referenced by Commit(), Init(), PutData(), Revert(), SetSize(), and UCBStorageStream_Impl().
void SvStream::SetError | ( | ErrCode | nErrorCode | ) |
|
overridevirtual |
Reimplemented from SvStream.
Definition at line 943 of file ucbstorage.cxx.
References ERRCODE_IO_ACCESSDENIED, Init(), m_bModified, m_bSourceRead, m_nMode, m_pStream, ReadSourceWriteTemporary(), SetError(), and STREAM_SEEK_TO_END.
Referenced by UCBStorageStream::SetSize().
OUString UCBStorageStream_Impl::m_aContentType |
Definition at line 406 of file ucbstorage.cxx.
Referenced by UCBStorageStream::CopyTo(), Revert(), and UCBStorageStream::SetProperty().
OString UCBStorageStream_Impl::m_aKey |
Definition at line 408 of file ucbstorage.cxx.
OUString UCBStorageStream_Impl::m_aName |
Definition at line 404 of file ucbstorage.cxx.
Referenced by Commit(), UCBStorage::OpenStream(), Revert(), and UCBStorageStream_Impl().
OUString UCBStorageStream_Impl::m_aOriginalContentType |
Definition at line 407 of file ucbstorage.cxx.
Referenced by Revert().
OUString UCBStorageStream_Impl::m_aOriginalName |
Definition at line 403 of file ucbstorage.cxx.
Referenced by Revert(), and UCBStorageStream_Impl().
OUString UCBStorageStream_Impl::m_aTempURL |
Definition at line 413 of file ucbstorage.cxx.
Referenced by Commit(), Free(), Init(), PrepareCachedForReopen(), Revert(), and ~UCBStorageStream_Impl().
OUString UCBStorageStream_Impl::m_aURL |
Definition at line 405 of file ucbstorage.cxx.
Referenced by Commit().
bool UCBStorageStream_Impl::m_bCommited |
Definition at line 418 of file ucbstorage.cxx.
Referenced by Commit(), FlushData(), and Revert().
bool UCBStorageStream_Impl::m_bDirect |
Definition at line 419 of file ucbstorage.cxx.
Referenced by Commit(), and CreateStorage().
bool UCBStorageStream_Impl::m_bIsOLEStorage |
Definition at line 422 of file ucbstorage.cxx.
Referenced by Commit(), and CreateStorage().
bool UCBStorageStream_Impl::m_bModified |
bool UCBStorageStream_Impl::m_bSourceRead |
Definition at line 416 of file ucbstorage.cxx.
Referenced by Commit(), CopySourceToTemporary(), GetData(), Init(), PrepareCachedForReopen(), ReadSourceWriteTemporary(), Revert(), SeekPos(), and SetSize().
ErrCode UCBStorageStream_Impl::m_nError |
Definition at line 414 of file ucbstorage.cxx.
Referenced by ResetError(), SetError(), and UCBStorageStream::UCBStorageStream().
StreamMode UCBStorageStream_Impl::m_nMode |
Definition at line 415 of file ucbstorage.cxx.
Referenced by Commit(), PrepareCachedForReopen(), PutData(), Revert(), SeekPos(), SetSize(), UCBStorageStream::UCBStorageStream(), UCBStorageStream::Validate(), and UCBStorageStream::~UCBStorageStream().
UCBStorageStream* UCBStorageStream_Impl::m_pAntiImpl |
Definition at line 401 of file ucbstorage.cxx.
Referenced by Clear(), ResetError(), Revert(), SetError(), UCBStorageStream::UCBStorageStream(), and UCBStorageStream::~UCBStorageStream().
::ucbhelper::Content* UCBStorageStream_Impl::m_pContent |
Definition at line 409 of file ucbstorage.cxx.
Referenced by Commit(), Init(), Revert(), UCBStorageStream::SetProperty(), UCBStorageStream_Impl(), and ~UCBStorageStream_Impl().
std::unique_ptr<SvStream> UCBStorageStream_Impl::m_pStream |
Definition at line 411 of file ucbstorage.cxx.
Referenced by CopySourceToTemporary(), FlushData(), Free(), GetData(), GetSize(), Init(), PutData(), ReadSourceWriteTemporary(), SeekPos(), SetSize(), UCBStorageStream::Tell(), and ~UCBStorageStream_Impl().
Reference<XInputStream> UCBStorageStream_Impl::m_rSource |
Definition at line 410 of file ucbstorage.cxx.
Referenced by Free(), GetData(), Init(), ReadSourceWriteTemporary(), Revert(), and ~UCBStorageStream_Impl().