LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
WrapStreamForShare Class Referencefinal

#include <wrapstreamforshare.hxx>

Inheritance diagram for WrapStreamForShare:
[legend]
Collaboration diagram for WrapStreamForShare:
[legend]

Public Member Functions

 WrapStreamForShare (css::uno::Reference< css::io::XInputStream > xInStream, rtl::Reference< comphelper::RefCountedMutex > xMutexRef)
 
virtual ~WrapStreamForShare () 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 void SAL_CALL seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 

Private Attributes

rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
css::uno::Reference< css::io::XInputStream > m_xInStream
 
css::uno::Reference< css::io::XSeekable > m_xSeekable
 
sal_Int64 m_nCurPos
 

Detailed Description

Definition at line 29 of file wrapstreamforshare.hxx.

Constructor & Destructor Documentation

◆ WrapStreamForShare()

WrapStreamForShare::WrapStreamForShare ( css::uno::Reference< css::io::XInputStream >  xInStream,
rtl::Reference< comphelper::RefCountedMutex xMutexRef 
)

Definition at line 37 of file wrapstreamforshare.cxx.

References m_nCurPos, m_xInStream, m_xMutex, m_xSeekable, and THROW_WHERE.

◆ ~WrapStreamForShare()

WrapStreamForShare::~WrapStreamForShare ( )
overridevirtual

Definition at line 51 of file wrapstreamforshare.cxx.

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL WrapStreamForShare::available ( )
overridevirtual

Definition at line 95 of file wrapstreamforshare.cxx.

References m_xInStream, m_xMutex, and THROW_WHERE.

◆ closeInput()

void SAL_CALL WrapStreamForShare::closeInput ( )
overridevirtual

Definition at line 105 of file wrapstreamforshare.cxx.

References m_xInStream, m_xMutex, m_xSeekable, and THROW_WHERE.

◆ getLength()

sal_Int64 SAL_CALL WrapStreamForShare::getLength ( )
overridevirtual

Definition at line 142 of file wrapstreamforshare.cxx.

References m_xInStream, m_xMutex, m_xSeekable, and THROW_WHERE.

◆ getPosition()

sal_Int64 SAL_CALL WrapStreamForShare::getPosition ( )
overridevirtual

Definition at line 132 of file wrapstreamforshare.cxx.

References m_nCurPos, m_xInStream, m_xMutex, and THROW_WHERE.

◆ readBytes()

sal_Int32 SAL_CALL WrapStreamForShare::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

Definition at line 56 of file wrapstreamforshare.cxx.

References aData, m_nCurPos, m_xInStream, m_xSeekable, and THROW_WHERE.

◆ readSomeBytes()

sal_Int32 SAL_CALL WrapStreamForShare::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual

Definition at line 69 of file wrapstreamforshare.cxx.

References aData, m_nCurPos, m_xInStream, m_xSeekable, and THROW_WHERE.

◆ seek()

void SAL_CALL WrapStreamForShare::seek ( sal_Int64  location)
overridevirtual

Definition at line 119 of file wrapstreamforshare.cxx.

References m_nCurPos, m_xInStream, m_xMutex, m_xSeekable, and THROW_WHERE.

◆ skipBytes()

void SAL_CALL WrapStreamForShare::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 82 of file wrapstreamforshare.cxx.

References m_nCurPos, m_xInStream, m_xMutex, m_xSeekable, and THROW_WHERE.

Member Data Documentation

◆ m_nCurPos

sal_Int64 WrapStreamForShare::m_nCurPos
private

Definition at line 36 of file wrapstreamforshare.hxx.

Referenced by getPosition(), readBytes(), readSomeBytes(), seek(), and skipBytes().

◆ m_xInStream

css::uno::Reference< css::io::XInputStream > WrapStreamForShare::m_xInStream
private

◆ m_xMutex

rtl::Reference< comphelper::RefCountedMutex > WrapStreamForShare::m_xMutex
private

◆ m_xSeekable

css::uno::Reference< css::io::XSeekable > WrapStreamForShare::m_xSeekable
private

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