LibreOffice Module sax (master) 1
|
#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< ForMergeBase > | mpForMerge |
ForMerge structure is used for sorting elements in Writer. More... | |
const css::uno::Sequence< sal_Int8 > | mpCache |
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... | |
Definition at line 30 of file CachedOutputStream.hxx.
|
inline |
Definition at line 45 of file CachedOutputStream.hxx.
References get().
|
inline |
immediately write buffer into mxOutputStream and clear
Definition at line 101 of file CachedOutputStream.hxx.
References mbWriteToOutStream, mnCacheWrittenSize, mpCache, mpForMerge, mxOutputStream, and pSeq.
Referenced by sax_fastparser::FastSaxSerializer::endDocument(), sax_fastparser::FastSaxSerializer::mergeTopMarks(), resetOutputToStream(), setOutput(), sax_fastparser::FastSaxSerializer::singleFastElement(), sax_fastparser::FastSaxSerializer::startFastElement(), and writeBytes().
|
inline |
Definition at line 51 of file CachedOutputStream.hxx.
References mxOutputStream.
Referenced by sax_fastparser::FastSaxSerializer::getOutputStream().
|
inline |
Definition at line 68 of file CachedOutputStream.hxx.
References flush(), mbWriteToOutStream, and mpForMerge.
Referenced by sax_fastparser::FastSaxSerializer::mergeTopMarks().
|
inline |
Definition at line 61 of file CachedOutputStream.hxx.
References flush(), mbWriteToOutStream, and mpForMerge.
Referenced by sax_fastparser::FastSaxSerializer::mark(), and sax_fastparser::FastSaxSerializer::mergeTopMarks().
|
inline |
Definition at line 56 of file CachedOutputStream.hxx.
References mxOutputStream.
Referenced by sax_fastparser::FastSaxSerializer::FastSaxSerializer().
|
inline |
cache string and if limit is hit, flush
Definition at line 76 of file CachedOutputStream.hxx.
References flush(), mbWriteToOutStream, mnCacheWrittenSize, mnMaximumSize, mpForMerge, mxOutputStream, and pSeq.
Referenced by sax_fastparser::FastSaxSerializer::mergeTopMarks(), and sax_fastparser::FastSaxSerializer::writeBytes().
|
private |
Definition at line 42 of file CachedOutputStream.hxx.
Referenced by flush(), resetOutputToStream(), setOutput(), and writeBytes().
|
private |
Definition at line 41 of file CachedOutputStream.hxx.
Referenced by flush(), and writeBytes().
|
staticprivate |
When buffer hits this size, it's written to mxOutputStream.
Definition at line 33 of file CachedOutputStream.hxx.
Referenced by writeBytes().
|
private |
Definition at line 37 of file CachedOutputStream.hxx.
Referenced by flush().
|
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().
|
private |
Output stream, usually writing data into files.
Definition at line 39 of file CachedOutputStream.hxx.
Referenced by flush(), getOutputStream(), setOutputStream(), and writeBytes().
|
private |
Definition at line 40 of file CachedOutputStream.hxx.
Referenced by flush(), and writeBytes().