diff options
Diffstat (limited to 'libqpdf/qpdf/QPDF_Stream.hh')
-rw-r--r-- | libqpdf/qpdf/QPDF_Stream.hh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libqpdf/qpdf/QPDF_Stream.hh b/libqpdf/qpdf/QPDF_Stream.hh index 98b8c11f..647b600d 100644 --- a/libqpdf/qpdf/QPDF_Stream.hh +++ b/libqpdf/qpdf/QPDF_Stream.hh @@ -1,5 +1,5 @@ -#ifndef __QPDF_STREAM_HH__ -#define __QPDF_STREAM_HH__ +#ifndef QPDF_STREAM_HH +#define QPDF_STREAM_HH #include <qpdf/Types.h> @@ -17,12 +17,19 @@ class QPDF_Stream: public QPDFObject qpdf_offset_t offset, size_t length); virtual ~QPDF_Stream(); virtual std::string unparse(); + virtual JSON getJSON(); virtual QPDFObject::object_type_e getTypeCode() const; virtual char const* getTypeName() const; virtual void setDescription(QPDF*, std::string const&); QPDFObjectHandle getDict() const; bool isDataModified() const; + // Methods to help QPDF copy foreign streams + qpdf_offset_t getOffset() const; + size_t getLength() const; + PointerHolder<Buffer> getStreamDataBuffer() const; + PointerHolder<QPDFObjectHandle::StreamDataProvider> getStreamDataProvider() const; + // See comments in QPDFObjectHandle.hh for these methods. bool pipeStreamData(Pipeline*, unsigned long encode_flags, @@ -82,4 +89,4 @@ class QPDF_Stream: public QPDFObject PointerHolder<QPDFObjectHandle::TokenFilter> > token_filters; }; -#endif // __QPDF_STREAM_HH__ +#endif // QPDF_STREAM_HH |