aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-03-03 21:48:31 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-05 19:35:46 +0100
commit119f2a4b684aae7cec8841412a5fc89bcbae404d (patch)
tree46b9247b59b4f9b07ecae4b14991f4840db9a89e /include
parent7be97b3e80bdb856c9d1fe720f9ee14a8063b5fa (diff)
downloadqpdf-119f2a4b684aae7cec8841412a5fc89bcbae404d.tar.zst
Add method to terminate content stream parsing
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh7
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();
};