|
LibreOffice Module svl (master) 1
|
#include <instrm.hxx>
Public Member Functions | |
| SvInputStream (css::uno::Reference< css::io::XInputStream > xTheStream) | |
| virtual | ~SvInputStream () override |
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 |
Private Member Functions | |
| SVL_DLLPRIVATE bool | open () |
| virtual SVL_DLLPRIVATE std::size_t | GetData (void *pData, std::size_t nSize) override |
| virtual SVL_DLLPRIVATE std::size_t | PutData (void const *, std::size_t) override |
| virtual SVL_DLLPRIVATE sal_uInt64 | SeekPos (sal_uInt64 nPos) override |
| virtual SVL_DLLPRIVATE void | FlushData () override |
| virtual SVL_DLLPRIVATE void | SetSize (sal_uInt64) override |
Private Attributes | |
| css::uno::Reference< css::io::XInputStream > | m_xStream |
| css::uno::Reference< css::io::XSeekable > | m_xSeekable |
| std::unique_ptr< SvDataPipe_Impl > | m_pPipe |
| sal_uInt64 | m_nSeekedFrom |
Additional Inherited Members | |
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 36 of file instrm.hxx.
| SvInputStream::SvInputStream | ( | css::uno::Reference< css::io::XInputStream > | xTheStream | ) |
Definition at line 317 of file strmadpt.cxx.
References m_xStream, SvStream::SetBufferSize(), and STREAM_SEEK_TO_END.
|
overridevirtual |
Definition at line 325 of file strmadpt.cxx.
References m_xStream.
|
overrideprivatevirtual |
Reimplemented from SvStream.
Definition at line 239 of file strmadpt.cxx.
|
overrideprivatevirtual |
Reimplemented from SvStream.
Definition at line 136 of file strmadpt.cxx.
References aBuffer, ERRCODE_IO_CANTREAD, m_nSeekedFrom, m_pPipe, m_xSeekable, m_xStream, nCount, open(), pData, SAL_MAX_UINT32, SvStream::SetError(), and STREAM_SEEK_TO_END.
|
private |
Definition at line 117 of file strmadpt.cxx.
References ERRCODE_IO_INVALIDDEVICE, ERRCODE_NONE, SvStream::GetError(), m_pPipe, m_xSeekable, m_xStream, and SvStream::SetError().
|
overrideprivatevirtual |
Reimplemented from SvStream.
Definition at line 232 of file strmadpt.cxx.
References ERRCODE_IO_NOTSUPPORTED, and SvStream::SetError().
|
overrideprivatevirtual |
Reimplemented from SvStream.
Definition at line 243 of file strmadpt.cxx.
References aBuffer, ERRCODE_IO_CANTSEEK, m_nSeekedFrom, m_pPipe, m_xSeekable, m_xStream, o3tl::make_unsigned(), nLength, nPos, open(), SAL_MAX_UINT32, SvDataPipe_Impl::SEEK_OK, SvStream::SetError(), STREAM_SEEK_TO_END, and SvStream::Tell().
|
overrideprivatevirtual |
Reimplemented from SvStream.
Definition at line 312 of file strmadpt.cxx.
References ERRCODE_IO_NOTSUPPORTED, and SvStream::SetError().
|
private |
Definition at line 41 of file instrm.hxx.
|
private |
Definition at line 40 of file instrm.hxx.
|
private |
Definition at line 39 of file instrm.hxx.
|
private |
Definition at line 38 of file instrm.hxx.
Referenced by GetData(), open(), SeekPos(), and ~SvInputStream().