2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-26 15:13:42 +00:00
qpdf/libqpdf/qpdf/QPDF_Stream.hh
Jay Berkenbilt 998a6cbee9 remove stream_data_handler; it wouldn't work as designed. replacement data implemented but not tested
git-svn-id: svn+q:///qpdf/trunk@988 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02 22:40:52 +00:00

43 lines
1.0 KiB
C++

#ifndef __QPDF_STREAM_HH__
#define __QPDF_STREAM_HH__
#include <qpdf/QPDFObject.hh>
#include <qpdf/QPDFObjectHandle.hh>
class Pipeline;
class QPDF;
class QPDF_Stream: public QPDFObject
{
public:
QPDF_Stream(QPDF*, int objid, int generation,
QPDFObjectHandle stream_dict,
off_t offset, int length);
virtual ~QPDF_Stream();
virtual std::string unparse();
QPDFObjectHandle getDict() const;
// See comments in QPDFObjectHandle.hh for these methods.
bool pipeStreamData(Pipeline*, bool filter,
bool normalize, bool compress);
PointerHolder<Buffer> getStreamData();
void replaceStreamData(PointerHolder<Buffer> data,
QPDFObjectHandle filter,
QPDFObjectHandle decode_parms);
private:
bool filterable(std::vector<std::string>& filters,
int& predictor, int& columns, bool& early_code_change);
QPDF* qpdf;
int objid;
int generation;
QPDFObjectHandle stream_dict;
off_t offset;
int length;
PointerHolder<Buffer> stream_data;
};
#endif // __QPDF_STREAM_HH__