aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/Pl_QPDFTokenizer.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-02-16 02:45:19 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-19 03:05:47 +0100
commite410b0fe0d8c1da3e0b0e075b54f247b952389ef (patch)
tree49020a0201961e9e6e0da9b4ab7fa2a498529759 /include/qpdf/Pl_QPDFTokenizer.hh
parent1fdd86a04924e4ab9543133b74df3322cffbd358 (diff)
downloadqpdf-e410b0fe0d8c1da3e0b0e075b54f247b952389ef.tar.zst
Simplify TokenFilter interface
Expose Pl_QPDFTokenizer, and have it do more of the work of managing the token filter's pipeline.
Diffstat (limited to 'include/qpdf/Pl_QPDFTokenizer.hh')
-rw-r--r--include/qpdf/Pl_QPDFTokenizer.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/qpdf/Pl_QPDFTokenizer.hh b/include/qpdf/Pl_QPDFTokenizer.hh
index be34b32e..65dc7919 100644
--- a/include/qpdf/Pl_QPDFTokenizer.hh
+++ b/include/qpdf/Pl_QPDFTokenizer.hh
@@ -41,8 +41,12 @@
class Pl_QPDFTokenizer: public Pipeline
{
public:
+ // Whatever pipeline is provided as "next" will be set as the
+ // pipeline that the token filter writes to. If next is not
+ // provided, any output written by the filter will be discarded.
Pl_QPDFTokenizer(char const* identifier,
- QPDFObjectHandle::TokenFilter* filter);
+ QPDFObjectHandle::TokenFilter* filter,
+ Pipeline* next = 0);
virtual ~Pl_QPDFTokenizer();
virtual void write(unsigned char* buf, size_t len);
virtual void finish();