diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-03-03 21:48:31 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-05 19:35:46 +0100 |
commit | 119f2a4b684aae7cec8841412a5fc89bcbae404d (patch) | |
tree | 46b9247b59b4f9b07ecae4b14991f4840db9a89e /include | |
parent | 7be97b3e80bdb856c9d1fe720f9ee14a8063b5fa (diff) | |
download | qpdf-119f2a4b684aae7cec8841412a5fc89bcbae404d.tar.zst |
Add method to terminate content stream parsing
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index e2c8b529..c42fa719 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -83,6 +83,13 @@ class QPDFObjectHandle } virtual void handleObject(QPDFObjectHandle) = 0; virtual void handleEOF() = 0; + + protected: + // Implementors may call this method during parsing to + // terminate parsing early. This method throws an exception + // that is caught by parseContentStream, so its effect is + // immediate. + void terminateParsing(); }; |