LibreOffice Module sax (master) 1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
sax_fastparser::CachedOutputStream Class Reference

#include <CachedOutputStream.hxx>

Public Member Functions

 CachedOutputStream ()
 
const css::uno::Reference< css::io::XOutputStream > & getOutputStream () const
 
void setOutputStream (const css::uno::Reference< css::io::XOutputStream > &xOutputStream)
 
void setOutput (std::shared_ptr< ForMergeBase > pForMerge)
 
void resetOutputToStream ()
 
void writeBytes (const sal_Int8 *pStr, sal_Int32 nLen)
 cache string and if limit is hit, flush More...
 
void flush ()
 immediately write buffer into mxOutputStream and clear More...
 

Private Attributes

std::shared_ptr< ForMergeBasempForMerge
 ForMerge structure is used for sorting elements in Writer. More...
 
const css::uno::Sequence< sal_Int8mpCache
 
css::uno::Reference< css::io::XOutputStream > mxOutputStream
 Output stream, usually writing data into files. More...
 
uno_Sequence * pSeq
 
sal_Int32 mnCacheWrittenSize
 
bool mbWriteToOutStream
 

Static Private Attributes

static const sal_Int32 mnMaximumSize = 0x100000
 When buffer hits this size, it's written to mxOutputStream. More...
 

Detailed Description

Definition at line 30 of file CachedOutputStream.hxx.

Constructor & Destructor Documentation

◆ CachedOutputStream()

sax_fastparser::CachedOutputStream::CachedOutputStream ( )
inline

Definition at line 45 of file CachedOutputStream.hxx.

References get().

Member Function Documentation

◆ flush()

void sax_fastparser::CachedOutputStream::flush ( )
inline

◆ getOutputStream()

const css::uno::Reference< css::io::XOutputStream > & sax_fastparser::CachedOutputStream::getOutputStream ( ) const
inline

Definition at line 51 of file CachedOutputStream.hxx.

References mxOutputStream.

Referenced by sax_fastparser::FastSaxSerializer::getOutputStream().

◆ resetOutputToStream()

void sax_fastparser::CachedOutputStream::resetOutputToStream ( )
inline

◆ setOutput()

void sax_fastparser::CachedOutputStream::setOutput ( std::shared_ptr< ForMergeBase pForMerge)
inline

◆ setOutputStream()

void sax_fastparser::CachedOutputStream::setOutputStream ( const css::uno::Reference< css::io::XOutputStream > &  xOutputStream)
inline

◆ writeBytes()

void sax_fastparser::CachedOutputStream::writeBytes ( const sal_Int8 pStr,
sal_Int32  nLen 
)
inline

Member Data Documentation

◆ mbWriteToOutStream

bool sax_fastparser::CachedOutputStream::mbWriteToOutStream
private

Definition at line 42 of file CachedOutputStream.hxx.

Referenced by flush(), resetOutputToStream(), setOutput(), and writeBytes().

◆ mnCacheWrittenSize

sal_Int32 sax_fastparser::CachedOutputStream::mnCacheWrittenSize
private

Definition at line 41 of file CachedOutputStream.hxx.

Referenced by flush(), and writeBytes().

◆ mnMaximumSize

const sal_Int32 sax_fastparser::CachedOutputStream::mnMaximumSize = 0x100000
staticprivate

When buffer hits this size, it's written to mxOutputStream.

Definition at line 33 of file CachedOutputStream.hxx.

Referenced by writeBytes().

◆ mpCache

const css::uno::Sequence<sal_Int8> sax_fastparser::CachedOutputStream::mpCache
private

Definition at line 37 of file CachedOutputStream.hxx.

Referenced by flush().

◆ mpForMerge

std::shared_ptr< ForMergeBase > sax_fastparser::CachedOutputStream::mpForMerge
private

ForMerge structure is used for sorting elements in Writer.

Definition at line 36 of file CachedOutputStream.hxx.

Referenced by flush(), resetOutputToStream(), setOutput(), and writeBytes().

◆ mxOutputStream

css::uno::Reference< css::io::XOutputStream > sax_fastparser::CachedOutputStream::mxOutputStream
private

Output stream, usually writing data into files.

Definition at line 39 of file CachedOutputStream.hxx.

Referenced by flush(), getOutputStream(), setOutputStream(), and writeBytes().

◆ pSeq

uno_Sequence* sax_fastparser::CachedOutputStream::pSeq
private

Definition at line 40 of file CachedOutputStream.hxx.

Referenced by flush(), and writeBytes().


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