LibreOffice Module ucb (master)  1
Public Member Functions | Private Attributes | List of all members
fileaccess::XInputStream_impl Class Reference

#include <filinpstr.hxx>

Inheritance diagram for fileaccess::XInputStream_impl:
Collaboration diagram for fileaccess::XInputStream_impl:

Public Member Functions

 XInputStream_impl (const OUString &aUncPath, bool bLock)
virtual ~XInputStream_impl () override
sal_Int32 CtorSuccess ()
 Returns an error code as given by filerror.hxx. More...
sal_Int32 getMinorError ()
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () 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 () override throw ()
virtual void SAL_CALL release () override throw ()
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
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 OWeakObject (const OWeakObject &)
OWeakObject &SAL_CALL operator= (const OWeakObject &)
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()

Private Attributes

bool m_nIsOpen
ReconnectingFile m_aFile
sal_Int32 m_nErrorCode
sal_Int32 m_nMinorErrorCode

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
void disposeWeakConnectionPoint ()
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount

Detailed Description

Definition at line 37 of file filinpstr.hxx.

Constructor & Destructor Documentation

XInputStream_impl::XInputStream_impl ( const OUString &  aUncPath,
bool  bLock 
XInputStream_impl::~XInputStream_impl ( )

Definition at line 64 of file filinpstr.cxx.

References closeInput().

Member Function Documentation

void SAL_CALL XInputStream_impl::acquire ( )
throw (

Reimplemented from cppu::OWeakObject.

Definition at line 102 of file filinpstr.cxx.

sal_Int32 SAL_CALL XInputStream_impl::available ( )

Definition at line 158 of file filinpstr.cxx.

References getLength(), getPosition(), and SAL_MAX_INT32.

void SAL_CALL XInputStream_impl::closeInput ( )

Definition at line 166 of file filinpstr.cxx.

References fileaccess::ReconnectingFile::close(), err, m_aFile, m_nIsOpen, and THROW_WHERE.

Referenced by ~XInputStream_impl().

sal_Int32 fileaccess::XInputStream_impl::CtorSuccess ( )

Returns an error code as given by filerror.hxx.

Definition at line 53 of file filinpstr.hxx.

References m_nErrorCode.

virtual css::uno::Sequence< sal_Int8 > SAL_CALL fileaccess::XInputStream_impl::getImplementationId ( )
sal_Int64 SAL_CALL XInputStream_impl::getLength ( )

Definition at line 198 of file filinpstr.cxx.

References fileaccess::ReconnectingFile::getSize(), m_aFile, and THROW_WHERE.

Referenced by available().

sal_Int32 fileaccess::XInputStream_impl::getMinorError ( )

Definition at line 54 of file filinpstr.hxx.

References m_nMinorErrorCode.

sal_Int64 SAL_CALL XInputStream_impl::getPosition ( )

Definition at line 189 of file filinpstr.cxx.

References fileaccess::ReconnectingFile::getPos(), m_aFile, and THROW_WHERE.

Referenced by available().

virtual css::uno::Sequence< css::uno::Type > SAL_CALL fileaccess::XInputStream_impl::getTypes ( )
virtual css::uno::Any SAL_CALL fileaccess::XInputStream_impl::queryInterface ( const css::uno::Type &  rType)

Reimplemented from cppu::OWeakObject.

virtual sal_Int32 SAL_CALL fileaccess::XInputStream_impl::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
virtual sal_Int32 SAL_CALL fileaccess::XInputStream_impl::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
void SAL_CALL XInputStream_impl::release ( )
throw (

Reimplemented from cppu::OWeakObject.

Definition at line 110 of file filinpstr.cxx.

void SAL_CALL XInputStream_impl::seek ( sal_Int64  location)

Definition at line 179 of file filinpstr.cxx.

References m_aFile, fileaccess::ReconnectingFile::setPos(), and THROW_WHERE.

void SAL_CALL XInputStream_impl::skipBytes ( sal_Int32  nBytesToSkip)

Definition at line 151 of file filinpstr.cxx.

References m_aFile, and fileaccess::ReconnectingFile::setPos().

Member Data Documentation

ReconnectingFile fileaccess::XInputStream_impl::m_aFile

Definition at line 105 of file filinpstr.hxx.

Referenced by closeInput(), getLength(), getPosition(), seek(), skipBytes(), and XInputStream_impl().

sal_Int32 fileaccess::XInputStream_impl::m_nErrorCode

Definition at line 107 of file filinpstr.hxx.

Referenced by CtorSuccess(), and XInputStream_impl().

bool fileaccess::XInputStream_impl::m_nIsOpen

Definition at line 103 of file filinpstr.hxx.

Referenced by closeInput(), and XInputStream_impl().

sal_Int32 fileaccess::XInputStream_impl::m_nMinorErrorCode

Definition at line 108 of file filinpstr.hxx.

Referenced by getMinorError(), and XInputStream_impl().

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