PoDoFo 0.9.6
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
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 output stream that writes data to a file

Constructor & Destructor Documentation

◆ PdfFileOutputStream()

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

Open a file for writing data

Parameters
pszFilenamethe filename of the file to read

Member Function Documentation

◆ Close()

void PoDoFo::PdfFileOutputStream::Close ( )
virtual

Close the PdfOutputStream. This method may throw exceptions and has to be called before the destructor to end writing.

No more data may be written to the output device after calling close.

Implements PoDoFo::PdfOutputStream.

◆ Write()

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 occurred

Implements PoDoFo::PdfOutputStream.