LibreOffice Module unotools (master) 1
Public Member Functions | Protected Member Functions | List of all members
utl::OSeekableInputStreamWrapper Class Reference

helper class for wrapping an SvStream into a com.sun.star.io::XInputStream which is seekable (i.e. More...

#include <streamwrap.hxx>

Inheritance diagram for utl::OSeekableInputStreamWrapper:
[legend]
Collaboration diagram for utl::OSeekableInputStreamWrapper:
[legend]

Public Member Functions

 OSeekableInputStreamWrapper (SvStream &_rStream)
 
 OSeekableInputStreamWrapper (SvStream *_pStream, bool _bOwner=false)
 
virtual void SAL_CALL seek (sal_Int64 _nLocation) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 

Protected Member Functions

 OSeekableInputStreamWrapper ()
 
 ~OSeekableInputStreamWrapper () override
 

Detailed Description

helper class for wrapping an SvStream into a com.sun.star.io::XInputStream which is seekable (i.e.

supports the com.sun.star.io::XSeekable interface).

Definition at line 84 of file streamwrap.hxx.

Constructor & Destructor Documentation

◆ OSeekableInputStreamWrapper() [1/3]

utl::OSeekableInputStreamWrapper::OSeekableInputStreamWrapper ( )
inlineprotected

Definition at line 88 of file streamwrap.hxx.

◆ ~OSeekableInputStreamWrapper()

utl::OSeekableInputStreamWrapper::~OSeekableInputStreamWrapper ( )
overrideprotecteddefault

References getLength().

◆ OSeekableInputStreamWrapper() [2/3]

utl::OSeekableInputStreamWrapper::OSeekableInputStreamWrapper ( SvStream _rStream)

Definition at line 164 of file streamwrap.cxx.

◆ OSeekableInputStreamWrapper() [3/3]

utl::OSeekableInputStreamWrapper::OSeekableInputStreamWrapper ( SvStream _pStream,
bool  _bOwner = false 
)

Definition at line 169 of file streamwrap.cxx.

Member Function Documentation

◆ getLength()

sal_Int64 SAL_CALL utl::OSeekableInputStreamWrapper::getLength ( )
overridevirtual

Definition at line 193 of file streamwrap.cxx.

References m_aMutex.

◆ getPosition()

sal_Int64 SAL_CALL utl::OSeekableInputStreamWrapper::getPosition ( )
overridevirtual

Definition at line 183 of file streamwrap.cxx.

References m_aMutex, and nPos.

◆ seek()

void SAL_CALL utl::OSeekableInputStreamWrapper::seek ( sal_Int64  _nLocation)
overridevirtual

Definition at line 174 of file streamwrap.cxx.

References m_aMutex.


The documentation for this class was generated from the following files: