PoDoFo 0.7.0
Public Member Functions

PoDoFo::PdfXRefStreamParserObject Class Reference

#include <PdfXRefStreamParserObject.h>

Inheritance diagram for PoDoFo::PdfXRefStreamParserObject:
PoDoFo::PdfParserObject PoDoFo::PdfObject PoDoFo::PdfTokenizer PoDoFo::PdfVariant

List of all members.

Public Member Functions

 PdfXRefStreamParserObject (PdfVecObjects *pCreator, const PdfRefCountedInputDevice &rDevice, const PdfRefCountedBuffer &rBuffer, PdfParser::TVecOffsets *pOffsets)
bool HasPrevious ()
pdf_long GetPreviousOffset ()

Detailed Description

A utility class for PdfParser that can parse an XRef stream object.

It is mainly here to make PdfParser more modular.


Constructor & Destructor Documentation

PoDoFo::PdfXRefStreamParserObject::PdfXRefStreamParserObject ( PdfVecObjects pCreator,
const PdfRefCountedInputDevice rDevice,
const PdfRefCountedBuffer rBuffer,
PdfParser::TVecOffsets *  pOffsets 
)

Parse the object data from the given file handle starting at the current position.

Parameters:
pCreatorpointer to a PdfVecObjects to resolve object references
rDevicean open reference counted input device which is positioned in front of the object which is going to be parsed.
rBufferbuffer to use for parsing to avoid reallocations
lOffsetthe position in the device from which the object shall be read if lOffset = -1, the object will be read from the current position in the file.
pOffsetsXRef entries are stored into this array

Member Function Documentation

pdf_long PoDoFo::PdfXRefStreamParserObject::GetPreviousOffset ( ) [inline]
Returns:
the offset of the previous XRef table
bool PoDoFo::PdfXRefStreamParserObject::HasPrevious ( ) [inline]
Returns:
true if there is a previous XRefStream