Package org.apache.pdfbox.cos
Class COSIncrement
java.lang.Object
org.apache.pdfbox.cos.COSIncrement
A
COSIncrement starts at a given COSUpdateInfo to collect updates, that have been made to a
COSDocument and therefore should be added to itīs next increment.- Author:
- Christian Appl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCOSIncrement(COSUpdateInfo incrementOrigin) Creates a newCOSIncrementfor the givenCOSUpdateInfo, the increment will use itīsCOSDocumentStateas itīs own origin and shall collect all updates contained in the givenCOSUpdateInfo.
Should the given object benull, the resulting increment shall be empty. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe givenCOSBases are not fit for inclusion in an increment and shall be added toexcluded.
nullvalues shall be ignored.iterator()Return an iterator for the determinedobjectscontained in thisCOSIncrement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
COSIncrement
Creates a newCOSIncrementfor the givenCOSUpdateInfo, the increment will use itīsCOSDocumentStateas itīs own origin and shall collect all updates contained in the givenCOSUpdateInfo.
Should the given object benull, the resulting increment shall be empty.- Parameters:
incrementOrigin- TheCOSUpdateInfoserving as an update source for thisCOSIncrement.
-
-
Method Details
-
contains
- Parameters:
base- TheCOSBaseto check.- Returns:
trueif the givenCOSBaseis already known to and has been processed by thisCOSIncrement.- See Also:
-
exclude
The givenCOSBases are not fit for inclusion in an increment and shall be added toexcluded.
nullvalues shall be ignored.- Parameters:
base- TheCOSBases to add toexcluded.- Returns:
- The
COSIncrementitself, to allow method chaining. - See Also:
-
getObjects
-
iterator
Return an iterator for the determinedobjectscontained in thisCOSIncrement.- Specified by:
iteratorin interfaceIterable<COSBase>- Returns:
- An iterator for the determined
objectscontained in thisCOSIncrement.
-