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

#include <PdfInputStream.h>

Inheritance diagram for PoDoFo::PdfDeviceInputStream:
PoDoFo::PdfInputStream

Public Member Functions

 PdfDeviceInputStream (PdfInputDevice *pDevice)
 
virtual pdf_long Read (char *pBuffer, pdf_long lLen, pdf_long *)
 

Detailed Description

An input stream that reads data from an input device

Constructor & Destructor Documentation

PoDoFo::PdfDeviceInputStream::PdfDeviceInputStream ( PdfInputDevice pDevice)

Read from an alread opened input device

Parameters
pDevicean input device

Member Function Documentation

pdf_long PoDoFo::PdfDeviceInputStream::Read ( char *  pBuffer,
pdf_long  lLen,
pdf_long *   
)
virtual

Read data from the input stream

Parameters
pBufferthe data will be stored into this buffer
lLenthe 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.