summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Stream.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/QPDF_Stream.hh')
-rw-r--r--libqpdf/qpdf/QPDF_Stream.hh12
1 files changed, 8 insertions, 4 deletions
diff --git a/libqpdf/qpdf/QPDF_Stream.hh b/libqpdf/qpdf/QPDF_Stream.hh
index c969255d..cc7cbf0a 100644
--- a/libqpdf/qpdf/QPDF_Stream.hh
+++ b/libqpdf/qpdf/QPDF_Stream.hh
@@ -18,24 +18,28 @@ class QPDF_Stream: public QPDFObject
virtual std::string unparse();
QPDFObjectHandle getDict() const;
- // See comments in QPDFObjectHandle.hh
+ // See comments in QPDFObjectHandle.hh for these methods.
bool pipeStreamData(Pipeline*, bool filter,
bool normalize, bool compress);
-
- // See comments in QPDFObjectHandle.hh
PointerHolder<Buffer> getStreamData();
+ void replaceStreamData(PointerHolder<Buffer> data,
+ QPDFObjectHandle filter,
+ QPDFObjectHandle decode_parms);
+ void replaceStreamData(
+ PointerHolder<QPDFObjectHandle::StreamDataHandler> dh);
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<QPDFObjectHandle::StreamDataHandler> stream_data_handler;
+ PointerHolder<Buffer> stream_data;
};
#endif // __QPDF_STREAM_HH__