Package org.apache.pdfbox.cos
Interface COSUpdateInfo
- All Superinterfaces:
COSObjectable
- All Known Implementing Classes:
COSArray,COSDictionary,COSObject,COSStream,UnmodifiableCOSDictionary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currentCOSUpdateStateof thisCOSUpdateInfo.default booleanGet the update state for the COSWriter.default voidsetNeedToBeUpdated(boolean flag) Set the update state of the dictionary for the COSWriter.default COSIncrementUses thisCOSUpdateInfoas the base object of a newCOSIncrement.Methods inherited from interface org.apache.pdfbox.pdmodel.common.COSObjectable
getCOSObject
-
Method Details
-
isNeedToBeUpdated
default boolean isNeedToBeUpdated()Get the update state for the COSWriter. This indicates whether an object is to be written when there is an incremental save.- Returns:
- the update state.
-
setNeedToBeUpdated
default void setNeedToBeUpdated(boolean flag) Set the update state of the dictionary for the COSWriter. This indicates whether an object is to be written when there is an incremental save.- Parameters:
flag- the update state.
-
toIncrement
Uses thisCOSUpdateInfoas the base object of a newCOSIncrement.- Returns:
- A
COSIncrementbased on thisCOSUpdateInfo. - See Also:
-
getUpdateState
COSUpdateState getUpdateState()Returns the currentCOSUpdateStateof thisCOSUpdateInfo.- Returns:
- The current
COSUpdateStateof thisCOSUpdateInfo. - See Also:
-