LibreOffice Module package (master) 1
|
#include <ByteGrabber.hxx>
Public Member Functions | |
ByteGrabber (css::uno::Reference< css::io::XInputStream > const &xIstream) | |
ByteGrabber implements the >> operators on an XOutputStream. More... | |
~ByteGrabber () | |
void | setInputStream (const css::uno::Reference< css::io::XInputStream > &xNewStream) |
sal_Int32 | readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) |
void | seek (sal_Int64 location) |
sal_Int64 | getPosition () |
sal_Int64 | getLength () |
sal_uInt16 | ReadUInt16 () |
sal_uInt32 | ReadUInt32 () |
sal_Int16 | ReadInt16 () |
sal_Int32 | ReadInt32 () |
Private Attributes | |
std::mutex | m_aMutex |
css::uno::Reference< css::io::XInputStream > | xStream |
css::uno::Reference< css::io::XSeekable > | xSeek |
css::uno::Sequence< sal_Int8 > | aSequence |
const sal_Int8 * | pSequence |
Definition at line 30 of file ByteGrabber.hxx.
ByteGrabber::ByteGrabber | ( | css::uno::Reference< css::io::XInputStream > const & | xIstream | ) |
ByteGrabber implements the >> operators on an XOutputStream.
This is potentially quite slow and may need to be optimised
Definition at line 39 of file ByteGrabber.cxx.
ByteGrabber::~ByteGrabber | ( | ) |
Definition at line 47 of file ByteGrabber.cxx.
sal_Int64 ByteGrabber::getLength | ( | ) |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 85 of file ByteGrabber.cxx.
References m_aMutex, THROW_WHERE, and xSeek.
sal_Int64 ByteGrabber::getPosition | ( | ) |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 76 of file ByteGrabber.cxx.
References m_aMutex, THROW_WHERE, and xSeek.
sal_Int32 ByteGrabber::readBytes | ( | css::uno::Sequence< sal_Int8 > & | aData, |
sal_Int32 | nBytesToRead | ||
) |
css::io::NotConnectedException | |
css::io::BufferSizeExceededException | |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 59 of file ByteGrabber.cxx.
|
inline |
Definition at line 64 of file ByteGrabber.hxx.
References ReadUInt16().
|
inline |
Definition at line 68 of file ByteGrabber.hxx.
References ReadUInt32().
sal_uInt16 ByteGrabber::ReadUInt16 | ( | ) |
Definition at line 94 of file ByteGrabber.cxx.
References aSequence, m_aMutex, pSequence, and xStream.
Referenced by ReadInt16().
sal_uInt32 ByteGrabber::ReadUInt32 | ( | ) |
Definition at line 107 of file ByteGrabber.cxx.
References aSequence, m_aMutex, pSequence, and xStream.
Referenced by ReadInt32().
void ByteGrabber::seek | ( | sal_Int64 | location | ) |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::uno::RuntimeException |
Definition at line 67 of file ByteGrabber.cxx.
References m_aMutex, THROW_WHERE, and xSeek.
void ByteGrabber::setInputStream | ( | const css::uno::Reference< css::io::XInputStream > & | xNewStream | ) |
Definition at line 51 of file ByteGrabber.cxx.
|
private |
Definition at line 36 of file ByteGrabber.hxx.
Referenced by ByteGrabber(), ReadUInt16(), and ReadUInt32().
|
private |
Definition at line 32 of file ByteGrabber.hxx.
Referenced by getLength(), getPosition(), readBytes(), ReadUInt16(), ReadUInt32(), seek(), and setInputStream().
|
private |
Definition at line 37 of file ByteGrabber.hxx.
Referenced by ByteGrabber(), ReadUInt16(), and ReadUInt32().
|
private |
Definition at line 35 of file ByteGrabber.hxx.
Referenced by getLength(), getPosition(), seek(), and setInputStream().
|
private |
Definition at line 34 of file ByteGrabber.hxx.
Referenced by readBytes(), ReadUInt16(), ReadUInt32(), and setInputStream().