PoDoFo::PdfFileInputStream Class Reference

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfFileInputStream:

PoDoFo::PdfInputStream

List of all members.

Public Member Functions

 PdfFileInputStream (const char *pszFilename)
virtual long Read (char *pBuffer, long lLen)
long GetFileLength ()


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

Parameters:
pszFilename the filename of the file to read


Member Function Documentation

long PoDoFo::PdfFileInputStream::GetFileLength (  ) 

Get the length of the file.

Returns:
the file length

long PoDoFo::PdfFileInputStream::Read ( char *  pBuffer,
long  lLen 
) [virtual]

Read data from the input stream

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

Implements PoDoFo::PdfInputStream.


Generated on Wed May 6 08:17:05 2009 for PoDoFo by  doxygen 1.5.8