#include <pdfwriter.h>
Public Member Functions | |
| virtual bool | supportObject (UNUSED_PARAM const Object &obj) const |
| virtual void | compress (const Object &obj, Ref *ref, StreamWriter &outStream) const |
Static Public Member Functions | |
| static boost::shared_ptr < NullFilterStreamWriter > | getInstance () |
| static unsigned char * | null_extractor (const Object &obj, size_t &size) |
Static Private Attributes | |
| static boost::shared_ptr < NullFilterStreamWriter > | instance |
Stream writer implementation with no filters. This writer will write stream data as is with all original filters and no modifications to original data.
| void pdfobjects::utils::NullFilterStreamWriter::compress | ( | const Object & | obj, | |
| Ref * | ref, | |||
| StreamWriter & | outStream | |||
| ) | const [virtual] |
Writes given stream object to the stream.
| obj | Stream object. | |
| ref | Indirect reference for object (NULL if direct). | |
| outStream | Stream where to write data. |
Uses streamToCharBuffer with null_extractor extractor.
Implements pdfobjects::utils::FilterStreamWriter.
References debug::DBG_WARN, null_extractor(), StreamWriter::putLine(), pdfobjects::utils::streamToCharBuffer(), and utilsPrintDbg.
| boost::shared_ptr< NullFilterStreamWriter > pdfobjects::utils::NullFilterStreamWriter::getInstance | ( | ) | [static] |
References instance.
Referenced by pdfobjects::utils::FilterStreamWriter::getInstance().
| unsigned char * pdfobjects::utils::NullFilterStreamWriter::null_extractor | ( | const Object & | obj, | |
| size_t & | size | |||
| ) | [static] |
Extracts stream data without any decoding.
References pdfobjects::utils::bufferFromStream(), debug::DBG_ERR, debug::DBG_WARN, pdfobjects::XPdfObjectFactory::getInstance(), and utilsPrintDbg.
Referenced by compress().
| bool pdfobjects::utils::NullFilterStreamWriter::supportObject | ( | UNUSED_PARAM const Object & | obj | ) | const [virtual] |
Checks whether given object is supported.
boost::shared_ptr< NullFilterStreamWriter > pdfobjects::utils::NullFilterStreamWriter::instance [static, private] |
Referenced by getInstance().