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

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfFileInputStream:

Public Member Functions

 PdfFileInputStream (const char *pszFilename)
virtual pdf_long Read (char *pBuffer, pdf_long lLen, pdf_long *=0)
pdf_long GetFileLength ()
FILE * GetHandle ()

Detailed Description

An input stream that reads data from a file

Constructor & Destructor Documentation

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

Open a file for reading data

pszFilenamethe filename of the file to read

Member Function Documentation

pdf_long PoDoFo::PdfFileInputStream::GetFileLength ( )

Get the length of the file.

the file length
FILE * PoDoFo::PdfFileInputStream::GetHandle ( )

Get the internal FILE handle.

the internal FILE handle
pdf_long PoDoFo::PdfFileInputStream::Read ( char *  pBuffer,
pdf_long  lLen,
pdf_long *  = 0 

Read data from the input stream

pBufferthe data will be stored into this buffer
lLenthe size of the buffer and number of bytes that will be read
the number of bytes read, -1 if an error ocurred and zero if no more bytes are available for reading.

Implements PoDoFo::PdfInputStream.