#include <PdfInputDevice.h>
Public Member Functions | |
PdfInputDevice (const char *pszFilename) | |
PdfInputDevice (const char *pBuffer, size_t lLen) | |
PdfInputDevice (const std::istream *pInStream) | |
virtual | ~PdfInputDevice () |
virtual void | Close () |
virtual std::streamoff | Tell () const |
virtual int | GetChar () const |
virtual int | Look () const |
virtual void | Seek (std::streamoff off, std::ios_base::seekdir dir=std::ios_base::beg) |
virtual std::streamoff | Read (char *pBuffer, std::streamsize lLen) |
virtual PODOFO_NOTHROW bool | Eof () const |
virtual PODOFO_NOTHROW bool | Bad () const |
virtual PODOFO_NOTHROW void | Clear (std::ios_base::iostate state=std::ios_base::goodbit) const |
PODOFO_NOTHROW bool | IsSeekable () const |
Protected Member Functions | |
PODOFO_NOTHROW void | SetSeekable (bool bIsSeekable) |
PdfInputDevice () |
This class is suitable for inheritance to provide input devices of your own for PoDoFo. Just overide the required virtual methods.
|
Construct a new PdfInputDevice that reads all data from a file.
|
|
Construct a new PdfInputDevice that reads all data from a memory buffer. The buffer will not be owned by this object - it is COPIED.
|
|
Construct a new PdfInputDevice that reads all data from a std::istream.
|
|
Destruct the PdfInputDevice object and close any open files. |
|
CAN NOT Construct a new PdfInputDevice without an input source. However subclasses may well need to do just that. |
|
|
|
Set the stream error state. By default, clears badbit, eofbit and failbit. |
|
Close the input device. No further operations may be performed on this device after calling this function. |
|
|
|
Get next char from stream.
|
|
|
|
Peek at next char in stream. /returns the next char in the stream |
|
Read a certain number of bytes from the input device.
|
|
Seek the device to the position offset from the begining
|
|
Control whether or or not this stream is flagged seekable. |
|
Get the current position in file. /returns the current position in the file |