PoDoFo  0.9.1
Public Member Functions
PoDoFo::PdfDeviceInputStream Class Reference

#include <PdfInputStream.h>

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

List of all members.

Public Member Functions

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

Detailed Description

An input stream that reads data from an input device


Constructor & Destructor Documentation

Read from an alread opened input device

Parameters:
pDevicean input device

Member Function Documentation

pdf_long PoDoFo::PdfDeviceInputStream::Read ( char *  pBuffer,
pdf_long  lLen 
) [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.