LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
OFSInputStreamContainer Class Reference

#include <oinputstreamcontainer.hxx>

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

Public Member Functions

 OFSInputStreamContainer (const css::uno::Reference< css::io::XInputStream > &xStream)
 
virtual ~OFSInputStreamContainer () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept 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 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 seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 

Private Attributes

std::mutex m_aMutex
 
css::uno::Reference< css::io::XInputStream > m_xInputStream
 
css::uno::Reference< css::io::XSeekable > m_xSeekable
 
bool m_bSeekable
 
bool m_bDisposed
 
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aListenersContainer
 

Detailed Description

Definition at line 33 of file oinputstreamcontainer.hxx.

Constructor & Destructor Documentation

◆ OFSInputStreamContainer()

OFSInputStreamContainer::OFSInputStreamContainer ( const css::uno::Reference< css::io::XInputStream > &  xStream)
explicit

Definition at line 27 of file oinputstreamcontainer.cxx.

References m_bDisposed, m_bSeekable, m_xSeekable, m_xSeekable, and xStream.

◆ ~OFSInputStreamContainer()

OFSInputStreamContainer::~OFSInputStreamContainer ( )
overridevirtual

Definition at line 36 of file oinputstreamcontainer.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL OFSInputStreamContainer::acquire ( )
overridevirtualnoexcept

Definition at line 81 of file oinputstreamcontainer.cxx.

References cppu::OWeakObject::acquire().

◆ addEventListener()

void SAL_CALL OFSInputStreamContainer::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ available()

sal_Int32 SAL_CALL OFSInputStreamContainer::available ( )
overridevirtual

Definition at line 132 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xInputStream.

◆ closeInput()

void SAL_CALL OFSInputStreamContainer::closeInput ( )
overridevirtual

Definition at line 145 of file oinputstreamcontainer.cxx.

References dispose(), m_aMutex, m_bDisposed, and m_xInputStream.

◆ dispose()

void SAL_CALL OFSInputStreamContainer::dispose ( void  )
overridevirtual

◆ getInputStream()

uno::Reference< io::XInputStream > SAL_CALL OFSInputStreamContainer::getInputStream ( )
overridevirtual

Definition at line 159 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xInputStream.

◆ getLength()

sal_Int64 SAL_CALL OFSInputStreamContainer::getLength ( )
overridevirtual

Definition at line 208 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xSeekable.

◆ getOutputStream()

uno::Reference< io::XOutputStream > SAL_CALL OFSInputStreamContainer::getOutputStream ( )
overridevirtual

Definition at line 172 of file oinputstreamcontainer.cxx.

References m_aMutex, and m_bDisposed.

◆ getPosition()

sal_Int64 SAL_CALL OFSInputStreamContainer::getPosition ( )
overridevirtual

Definition at line 195 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xSeekable.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL OFSInputStreamContainer::getTypes ( )
overridevirtual

Definition at line 40 of file oinputstreamcontainer.cxx.

References cppu::OTypeCollection::getTypes(), and m_bSeekable.

◆ queryInterface()

uno::Any SAL_CALL OFSInputStreamContainer::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Definition at line 59 of file oinputstreamcontainer.cxx.

References uno::Any::hasValue(), and m_bSeekable.

◆ readBytes()

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

Definition at line 93 of file oinputstreamcontainer.cxx.

References aData, m_aMutex, m_bDisposed, and m_xInputStream.

◆ readSomeBytes()

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

Definition at line 106 of file oinputstreamcontainer.cxx.

References aData, m_aMutex, m_bDisposed, and m_xInputStream.

◆ release()

void SAL_CALL OFSInputStreamContainer::release ( )
overridevirtualnoexcept

Definition at line 87 of file oinputstreamcontainer.cxx.

References cppu::OWeakObject::release().

◆ removeEventListener()

void SAL_CALL OFSInputStreamContainer::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ seek()

void SAL_CALL OFSInputStreamContainer::seek ( sal_Int64  location)
overridevirtual

Definition at line 182 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xSeekable.

◆ skipBytes()

void SAL_CALL OFSInputStreamContainer::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 119 of file oinputstreamcontainer.cxx.

References m_aMutex, m_bDisposed, and m_xInputStream.

Member Data Documentation

◆ m_aListenersContainer

::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> OFSInputStreamContainer::m_aListenersContainer
private

Definition at line 46 of file oinputstreamcontainer.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_aMutex

std::mutex OFSInputStreamContainer::m_aMutex
private

◆ m_bDisposed

bool OFSInputStreamContainer::m_bDisposed
private

◆ m_bSeekable

bool OFSInputStreamContainer::m_bSeekable
private

Definition at line 42 of file oinputstreamcontainer.hxx.

Referenced by getTypes(), OFSInputStreamContainer(), and queryInterface().

◆ m_xInputStream

css::uno::Reference< css::io::XInputStream > OFSInputStreamContainer::m_xInputStream
private

◆ m_xSeekable

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

Definition at line 40 of file oinputstreamcontainer.hxx.

Referenced by getLength(), getPosition(), OFSInputStreamContainer(), and seek().


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