diff options
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(); }; |