|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.StateManager
public class StateManager
This class is responsible for keeping track of which object in the document have change. When a file is written to disk this class is used to find the object that shoud be written in the body section of the file as part of an incremental update.
Once this object is created should be added to the library so that is accessable by any PObject.
| Constructor Summary | |
|---|---|
StateManager(PTrailer trailer)
Creates a new instance of the state manager. |
|
| Method Summary | |
|---|---|
void |
addChange(PObject pObject)
Add a new PObject containing changed data to the cache. |
boolean |
contains(Reference reference)
Checks the state manager to see if an instance of the specified reference already exists in the cache. |
Reference |
getNewReferencNumber()
Gets the next available reference number from the trailer. |
PTrailer |
getTrailer()
|
boolean |
isChanged()
|
java.util.Iterator<PObject> |
iteratorSortedByObjectNumber()
|
void |
removeChange(PObject pObject)
Remove a PObject from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateManager(PTrailer trailer)
trailer - document trailer| Method Detail |
|---|
public Reference getNewReferencNumber()
public void addChange(PObject pObject)
pObject - object to add to cache.public boolean contains(Reference reference)
reference - reference to look for an existing usuage.
public void removeChange(PObject pObject)
pObject - pObject to removed from the cache.public boolean isChanged()
public java.util.Iterator<PObject> iteratorSortedByObjectNumber()
public PTrailer getTrailer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||