com.lowagie.rups.model

Class ObjectLoader

public class ObjectLoader extends BackgroundTask

Loads the necessary iText PDF objects in Background.
Field Summary
protected TreeNodeFactorynodes
The factory that can provide tree nodes.
protected IndirectObjectFactoryobjects
The factory that can provide PDF objects.
protected Observableobservable
This is the object that will forward the updates to the observers.
protected PdfReaderreader
iText's PdfReader object.
Constructor Summary
ObjectLoader(Observable observable, PdfReader reader)
Creates a new ObjectLoader.
Method Summary
voiddoTask()
TreeNodeFactorygetNodes()
Getter for the tree node factory.
IndirectObjectFactorygetObjects()
Getter for the object factory.
PdfReadergetReader()
Getter for the PdfReader object.

Field Detail

nodes

protected TreeNodeFactory nodes
The factory that can provide tree nodes.

objects

protected IndirectObjectFactory objects
The factory that can provide PDF objects.

observable

protected Observable observable
This is the object that will forward the updates to the observers.

reader

protected PdfReader reader
iText's PdfReader object.

Constructor Detail

ObjectLoader

public ObjectLoader(Observable observable, PdfReader reader)
Creates a new ObjectLoader.

Parameters: observable the object that will forward the changes. reader the PdfReader from which the objects will be read.

Method Detail

doTask

void doTask()

See Also: doTask

getNodes

public TreeNodeFactory getNodes()
Getter for the tree node factory.

Returns: a tree node factory

getObjects

public IndirectObjectFactory getObjects()
Getter for the object factory.

Returns: an indirect object factory

getReader

public PdfReader getReader()
Getter for the PdfReader object.

Returns: a reader object