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

#include <PdfOutputStream.h>

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

Public Member Functions

 PdfFileOutputStream (const char *pszFilename)
 
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 data to a file

Constructor & Destructor Documentation

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

Open a file for writing data

Parameters
pszFilenamethe 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
pBufferthe data is read from this buffer
lLenthe size of the buffer
Returns
the number of bytes written, -1 if an error ocurred

Implements PoDoFo::PdfOutputStream.