Public Member Functions | |
PdfFilteredEncodeStream (PdfOutputStream *pOutputStream, const EPdfFilter eFilter, bool bOwnStream) | |
virtual long | Write (const char *pBuffer, long lLen) |
virtual void | Close () |
Create a filter that is a PdfOutputStream.
All data written to this stream is encoded using a filter and written to another PdfOutputStream.
The passed output stream is owned by this PdfOutputStream and deleted along with it.
PoDoFo::PdfFilteredEncodeStream::PdfFilteredEncodeStream | ( | PdfOutputStream * | pOutputStream, | |
const EPdfFilter | eFilter, | |||
bool | bOwnStream | |||
) | [inline] |
Create a filtered output stream.
All data written to this stream is encoded using the passed filter type and written to the passed output stream which will be deleted by this PdfFilteredEncodeStream.
pOutputStream | write all data to this output stream after encoding the data. | |
eFilter | use this filter for encoding. | |
bOwnStream | if true pOutputStream will be deleted along with this filter |
virtual void PoDoFo::PdfFilteredEncodeStream::Close | ( | ) | [inline, virtual] |
Close the PdfOutputStream. This method may throw exceptions and has to be called before the descructor to end writing.
No more data may be written to the output device after calling close.
Implements PoDoFo::PdfOutputStream.
virtual long PoDoFo::PdfFilteredEncodeStream::Write | ( | const char * | pBuffer, | |
long | lLen | |||
) | [inline, virtual] |
Write data to the output stream
pBuffer | the data is read from this buffer | |
lLen | the size of the buffer |
Implements PoDoFo::PdfOutputStream.