Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfFilter::FailEncodeDecode (  ) [inline, protected, inherited]

Indicate that the filter has failed, and will be non-functional until BeginEncode() or BeginDecode() is next called. Call this instead of EndEncode() or EndDecode if something went wrong. It clears the stream output but otherwise does nothing.

After this method is called futher calls to EncodeBlock(), DecodeBlock(), EndDecode() and EndEncode() before the next BeginEncode() or BeginDecode() are guaranteed to throw without calling their virtual implementations.

Definition at line 407 of file PdfFilter.h.

References PoDoFo::PdfOutputStream::Close().

Referenced by PoDoFo::PdfFilter::BeginDecode(), PoDoFo::PdfFilter::BeginEncode(), PoDoFo::PdfFilter::DecodeBlock(), PoDoFo::PdfFlateFilter::DecodeBlockImpl(), PoDoFo::PdfFilter::EncodeBlock(), PoDoFo::PdfFilter::EndDecode(), and PoDoFo::PdfFilter::EndEncode().

    if ( m_pOutputStream != NULL ) // OC 19.08.2010 BugFix: Sometimes FailEncodeDecode() is called twice
    m_pOutputStream = NULL;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index