PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfDeviceOutputStream Class Reference

#include <PdfOutputStream.h>

Inheritance diagram for PoDoFo::PdfDeviceOutputStream:

Public Member Functions

 PdfDeviceOutputStream (PdfOutputDevice *pDevice)
virtual pdf_long Write (const char *pBuffer, pdf_long lLen)
virtual void Close ()
- Public Member Functions inherited from PoDoFo::PdfOutputStream
pdf_long Write (const std::string &s)

Detailed Description

An output stream that writes to a PdfOutputDevice

Constructor & Destructor Documentation

PoDoFo::PdfDeviceOutputStream::PdfDeviceOutputStream ( PdfOutputDevice pDevice)

Write to an already opened input device

pDevicean output device

Member Function Documentation

virtual void PoDoFo::PdfDeviceOutputStream::Close ( )

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.

pdf_long PoDoFo::PdfDeviceOutputStream::Write ( const char *  pBuffer,
pdf_long  lLen 

Write data to the output stream

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

Implements PoDoFo::PdfOutputStream.