PoDoFo::PdfFileOutputStream Class Reference

#include <PdfOutputStream.h>

Inheritance diagram for PoDoFo::PdfFileOutputStream:
PoDoFo::PdfOutputStream

List of all members.

Public Member Functions

 PdfFileOutputStream (const char *pszFilename)
virtual pdf_long Write (const char *pBuffer, pdf_long lLen)
virtual void Close ()

Detailed Description

An output stream that writes data to a file


Constructor & Destructor Documentation

PoDoFo::PdfFileOutputStream::PdfFileOutputStream ( const char *  pszFilename  ) 

Open a file for writing data

Parameters:
pszFilename the filename of the file to read

Member Function Documentation

void PoDoFo::PdfFileOutputStream::Close (  )  [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.

pdf_long PoDoFo::PdfFileOutputStream::Write ( const char *  pBuffer,
pdf_long  lLen 
) [virtual]

Write data to the output stream

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

Implements PoDoFo::PdfOutputStream.


Generated on 15 Jun 2010 for PoDoFo by  doxygen 1.6.1