LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
LwpSvStream Class Reference

encapsulate XInputStream to provide SvStream like interfaces More...

#include <lwpsvstream.hxx>

Collaboration diagram for LwpSvStream:
[legend]

Public Member Functions

 LwpSvStream (SvStream *pStream, LwpSvStream *pCompressed=nullptr)
 
size_t Read (void *bytes, size_t nBytesToRead)
 @descr read nBytesToRead bytes to buf More...
 
void SeekRel (sal_Int64 pos)
 @descr SeekRel in stream More...
 
sal_Int64 Tell ()
 @descr Get the current position in stream More...
 
sal_uInt64 remainingSize ()
 
sal_Int64 Seek (sal_Int64 pos)
 @descr Seek to pos More...
 
bool CheckSeek (sal_Int64 pos)
 
bool good () const
 
LwpSvStreamReadUInt8 (sal_uInt8 &rUInt8)
 
LwpSvStreamReadUInt16 (sal_uInt16 &rUInt16)
 
LwpSvStreamReadUInt32 (sal_uInt32 &rUInt32)
 
LwpSvStreamGetCompressedStream ()
 
SvStreamGetStream ()
 

Static Public Attributes

static const sal_uInt32 LWP_STREAM_BASE = 0x0010
 

Private Attributes

SvStreamm_pStream
 
LwpSvStreamm_pCompressedStream
 

Detailed Description

encapsulate XInputStream to provide SvStream like interfaces

Definition at line 68 of file lwpsvstream.hxx.

Constructor & Destructor Documentation

◆ LwpSvStream()

LwpSvStream::LwpSvStream ( SvStream pStream,
LwpSvStream pCompressed = nullptr 
)

Definition at line 61 of file lwpsvstream.cxx.

References m_pStream.

Member Function Documentation

◆ CheckSeek()

bool LwpSvStream::CheckSeek ( sal_Int64  pos)

Definition at line 110 of file lwpsvstream.cxx.

References checkSeek(), m_pStream, and pos.

Referenced by LwpIndexManager::Read(), and Lwp9Reader::ReadFileHeader().

◆ GetCompressedStream()

LwpSvStream * LwpSvStream::GetCompressedStream ( )
inline

◆ GetStream()

SvStream * LwpSvStream::GetStream ( )
inline

Definition at line 87 of file lwpsvstream.hxx.

References m_pStream.

Referenced by ReadWordproFile().

◆ good()

bool LwpSvStream::good ( ) const

Definition at line 93 of file lwpsvstream.cxx.

References SvStream::good(), and m_pStream.

◆ Read()

size_t LwpSvStream::Read ( void *  bytes,
size_t  nBytesToRead 
)

@descr read nBytesToRead bytes to buf

Definition at line 70 of file lwpsvstream.cxx.

References m_pStream, and SvStream::ReadBytes().

Referenced by OpenStormBento::LtcBenContainer::Read(), LwpObjectStream::Read2Buffer(), and OpenStormBento::LtcBenContainer::ReadKnownSize().

◆ ReadUInt16()

LwpSvStream & LwpSvStream::ReadUInt16 ( sal_uInt16 &  rUInt16)

◆ ReadUInt32()

LwpSvStream & LwpSvStream::ReadUInt32 ( sal_uInt32 &  rUInt32)

◆ ReadUInt8()

LwpSvStream & LwpSvStream::ReadUInt8 ( sal_uInt8 rUInt8)

Definition at line 75 of file lwpsvstream.cxx.

References m_pStream, and SvStream::ReadUChar().

Referenced by LwpObjectID::ReadIndexed().

◆ remainingSize()

sal_uInt64 LwpSvStream::remainingSize ( )

Definition at line 104 of file lwpsvstream.cxx.

References m_pStream, and SvStream::remainingSize().

◆ Seek()

sal_Int64 LwpSvStream::Seek ( sal_Int64  pos)

◆ SeekRel()

void LwpSvStream::SeekRel ( sal_Int64  pos)

@descr SeekRel in stream

Definition at line 98 of file lwpsvstream.cxx.

References m_pStream, pos, and SvStream::SeekRel().

Referenced by OpenStormBento::LtcBenContainer::SeekFromEnd().

◆ Tell()

sal_Int64 LwpSvStream::Tell ( )

Member Data Documentation

◆ LWP_STREAM_BASE

const sal_uInt32 LwpSvStream::LWP_STREAM_BASE = 0x0010
static

◆ m_pCompressedStream

LwpSvStream* LwpSvStream::m_pCompressedStream
private

Definition at line 96 of file lwpsvstream.hxx.

Referenced by GetCompressedStream().

◆ m_pStream

SvStream* LwpSvStream::m_pStream
private

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