LibreOffice Module comphelper (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::OSeekableInputWrapper Class Referencefinal

#include <seekableinput.hxx>

Inheritance diagram for comphelper::OSeekableInputWrapper:
[legend]
Collaboration diagram for comphelper::OSeekableInputWrapper:
[legend]

Public Member Functions

 OSeekableInputWrapper (const css::uno::Reference< css::io::XInputStream > &xInStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~OSeekableInputWrapper () 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
 

Static Public Member Functions

static css::uno::Reference< css::io::XInputStream > CheckSeekableCanWrap (const css::uno::Reference< css::io::XInputStream > &xInStream, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 

Private Member Functions

COMPHELPER_DLLPRIVATE void PrepareCopy_Impl ()
 

Private Attributes

::osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::io::XInputStream > m_xOriginalStream
 
css::uno::Reference< css::io::XInputStream > m_xCopyInput
 
css::uno::Reference< css::io::XSeekable > m_xCopySeek
 

Detailed Description

Definition at line 39 of file seekableinput.hxx.

Constructor & Destructor Documentation

comphelper::OSeekableInputWrapper::OSeekableInputWrapper ( const css::uno::Reference< css::io::XInputStream > &  xInStream,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)

Definition at line 59 of file seekableinput.cxx.

References m_xContext, and m_xContext.

Referenced by CheckSeekableCanWrap().

comphelper::OSeekableInputWrapper::~OSeekableInputWrapper ( )
overridevirtual

Definition at line 70 of file seekableinput.cxx.

Member Function Documentation

sal_Int32 SAL_CALL comphelper::OSeekableInputWrapper::available ( )
overridevirtual

Definition at line 157 of file seekableinput.cxx.

References m_aMutex, m_xCopyInput, m_xOriginalStream, and PrepareCopy_Impl().

uno::Reference< io::XInputStream > comphelper::OSeekableInputWrapper::CheckSeekableCanWrap ( const css::uno::Reference< css::io::XInputStream > &  xInStream,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)
static

Definition at line 75 of file seekableinput.cxx.

References OSeekableInputWrapper().

void SAL_CALL comphelper::OSeekableInputWrapper::closeInput ( )
overridevirtual

Definition at line 170 of file seekableinput.cxx.

References m_aMutex, m_xCopyInput, m_xCopySeek, and m_xOriginalStream.

sal_Int64 SAL_CALL comphelper::OSeekableInputWrapper::getLength ( )
overridevirtual

Definition at line 218 of file seekableinput.cxx.

References m_aMutex, m_xCopySeek, m_xOriginalStream, and PrepareCopy_Impl().

sal_Int64 SAL_CALL comphelper::OSeekableInputWrapper::getPosition ( )
overridevirtual

Definition at line 205 of file seekableinput.cxx.

References m_aMutex, m_xCopySeek, m_xOriginalStream, and PrepareCopy_Impl().

void comphelper::OSeekableInputWrapper::PrepareCopy_Impl ( )
private
sal_Int32 SAL_CALL comphelper::OSeekableInputWrapper::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

Definition at line 118 of file seekableinput.cxx.

References m_aMutex, m_xCopyInput, m_xOriginalStream, and PrepareCopy_Impl().

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

Definition at line 131 of file seekableinput.cxx.

References m_aMutex, m_xCopyInput, m_xOriginalStream, and PrepareCopy_Impl().

void SAL_CALL comphelper::OSeekableInputWrapper::seek ( sal_Int64  location)
overridevirtual

Definition at line 192 of file seekableinput.cxx.

References m_aMutex, m_xCopySeek, m_xOriginalStream, and PrepareCopy_Impl().

void SAL_CALL comphelper::OSeekableInputWrapper::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 144 of file seekableinput.cxx.

References m_aMutex, m_xCopyInput, m_xOriginalStream, and PrepareCopy_Impl().

Member Data Documentation

::osl::Mutex comphelper::OSeekableInputWrapper::m_aMutex
private
css::uno::Reference< css::uno::XComponentContext > comphelper::OSeekableInputWrapper::m_xContext
private

Definition at line 44 of file seekableinput.hxx.

Referenced by OSeekableInputWrapper(), and PrepareCopy_Impl().

css::uno::Reference< css::io::XInputStream > comphelper::OSeekableInputWrapper::m_xCopyInput
private
css::uno::Reference< css::io::XSeekable > comphelper::OSeekableInputWrapper::m_xCopySeek
private

Definition at line 49 of file seekableinput.hxx.

Referenced by closeInput(), getLength(), getPosition(), PrepareCopy_Impl(), and seek().

css::uno::Reference< css::io::XInputStream > comphelper::OSeekableInputWrapper::m_xOriginalStream
private

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