Class ObjectLoader
java.lang.Object
org.openpdf.rups.model.BackgroundTask
org.openpdf.rups.model.ObjectLoader
Loads the necessary iText PDF objects in Background.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TreeNodeFactoryThe factory that can provide tree nodes.protected IndirectObjectFactoryThe factory that can provide PDF objects.protected ObservableThis is the object that will forward the updates to the observers.protected PdfReaderiText's PdfReader object. -
Constructor Summary
ConstructorsConstructorDescriptionObjectLoader(Observable observable, PdfReader reader) Creates a new ObjectLoader. -
Method Summary
Methods inherited from class BackgroundTask
finished, interrupt, start
-
Field Details
-
observable
This is the object that will forward the updates to the observers. -
reader
iText's PdfReader object. -
objects
The factory that can provide PDF objects. -
nodes
The factory that can provide tree nodes.
-
-
Constructor Details
-
ObjectLoader
Creates a new ObjectLoader.- Parameters:
observable- the object that will forward the changes.reader- the PdfReader from which the objects will be read.
-
-
Method Details
-
getReader
-
getObjects
Getter for the object factory.- Returns:
- an indirect object factory
-
getNodes
-
doTask
public void doTask()Description copied from class:BackgroundTaskImplement this class; the time-consuming task will go here.- Specified by:
doTaskin classBackgroundTask- See Also:
-