PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfOutputStream Class Referenceabstract

#include <PdfOutputStream.h>

Inheritance diagram for PoDoFo::PdfOutputStream:
PoDoFo::PdfBufferOutputStream PoDoFo::PdfDeviceOutputStream PoDoFo::PdfFileOutputStream PoDoFo::PdfFilteredDecodeStream PoDoFo::PdfFilteredEncodeStream PoDoFo::PdfMemoryOutputStream

Public Member Functions

virtual pdf_long Write (const char *pBuffer, pdf_long lLen)=0
 
pdf_long Write (const std::string &s)
 
virtual void Close ()=0
 

Detailed Description

An interface for writing blocks of data to a data source.

Member Function Documentation

virtual void PoDoFo::PdfOutputStream::Close ( )
pure 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.

Implemented in PoDoFo::PdfBufferOutputStream, PoDoFo::PdfDeviceOutputStream, PoDoFo::PdfFilteredDecodeStream, PoDoFo::PdfMemoryOutputStream, PoDoFo::PdfFilteredEncodeStream, and PoDoFo::PdfFileOutputStream.

virtual pdf_long PoDoFo::PdfOutputStream::Write ( const char *  pBuffer,
pdf_long  lLen 
)
pure virtual

Write data to the output stream

Parameters
pBufferthe data is read from this buffer
lLenthe size of the buffer
Returns
the number of bytes written, -1 if an error ocurred

Implemented in PoDoFo::PdfBufferOutputStream, PoDoFo::PdfDeviceOutputStream, PoDoFo::PdfFilteredDecodeStream, PoDoFo::PdfMemoryOutputStream, PoDoFo::PdfFilteredEncodeStream, and PoDoFo::PdfFileOutputStream.

pdf_long PoDoFo::PdfOutputStream::Write ( const std::string &  s)
inline

Helper that writes a string via Write(const char*,long)