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

#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 () const
 Returns an error code as given by filerror.hxx. More...
sal_Int32 getMinorError () const
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

bool m_nIsOpen
ReconnectingFile m_aFile
sal_Int32 m_nErrorCode
sal_Int32 m_nMinorErrorCode

Detailed Description

Definition at line 32 of file filinpstr.hxx.

Constructor & Destructor Documentation

◆ XInputStream_impl()

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

◆ ~XInputStream_impl()

XInputStream_impl::~XInputStream_impl ( )

Definition at line 60 of file filinpstr.cxx.

References closeInput().

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL XInputStream_impl::available ( )

Definition at line 117 of file filinpstr.cxx.

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

◆ closeInput()

void SAL_CALL XInputStream_impl::closeInput ( )

Definition at line 125 of file filinpstr.cxx.

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

Referenced by ~XInputStream_impl().

◆ CtorSuccess()

sal_Int32 fileaccess::XInputStream_impl::CtorSuccess ( ) const

Returns an error code as given by filerror.hxx.

Definition at line 45 of file filinpstr.hxx.

References m_nErrorCode.

◆ getLength()

sal_Int64 SAL_CALL XInputStream_impl::getLength ( )

Definition at line 157 of file filinpstr.cxx.

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

Referenced by available().

◆ getMinorError()

sal_Int32 fileaccess::XInputStream_impl::getMinorError ( ) const

Definition at line 46 of file filinpstr.hxx.

References m_nMinorErrorCode.

◆ getPosition()

sal_Int64 SAL_CALL XInputStream_impl::getPosition ( )

Definition at line 148 of file filinpstr.cxx.

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

Referenced by available().

◆ readBytes()

virtual sal_Int32 SAL_CALL fileaccess::XInputStream_impl::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 

◆ readSomeBytes()

virtual sal_Int32 SAL_CALL fileaccess::XInputStream_impl::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 

◆ seek()

void SAL_CALL XInputStream_impl::seek ( sal_Int64  location)

Definition at line 138 of file filinpstr.cxx.

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

◆ skipBytes()

void SAL_CALL XInputStream_impl::skipBytes ( sal_Int32  nBytesToSkip)

Definition at line 110 of file filinpstr.cxx.

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

Member Data Documentation

◆ m_aFile

ReconnectingFile fileaccess::XInputStream_impl::m_aFile

Definition at line 80 of file filinpstr.hxx.

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

◆ m_nErrorCode

sal_Int32 fileaccess::XInputStream_impl::m_nErrorCode

Definition at line 82 of file filinpstr.hxx.

Referenced by CtorSuccess(), and XInputStream_impl().

◆ m_nIsOpen

bool fileaccess::XInputStream_impl::m_nIsOpen

Definition at line 78 of file filinpstr.hxx.

Referenced by closeInput(), and XInputStream_impl().

◆ m_nMinorErrorCode

sal_Int32 fileaccess::XInputStream_impl::m_nMinorErrorCode

Definition at line 83 of file filinpstr.hxx.

Referenced by getMinorError(), and XInputStream_impl().

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