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:
pCreator pointer to a PdfVecObjects to resolve object references
rDevice an open reference counted input device which is positioned in front of the object which is going to be parsed.
rBuffer buffer to use for parsing to avoid reallocations
lOffset the 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.
pOffsets XRef 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

Generated on 15 Jun 2010 for PoDoFo by  doxygen 1.6.1