Package org.apache.pdfbox.cos
Class COSDocumentState
java.lang.Object
org.apache.pdfbox.cos.COSDocumentState
An instance of
COSDocumentState collects all known states a COSDocument may have and shall allow
their evaluation.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrue, if the document´sparsingis completed and it may be updated.voidsetParsing(boolean parsing) Sets theparsingstate of the document.
-
Field Details
-
parsing
private boolean parsingThe parsing state of the document.true, if the document is currently being parsed. (initial state)false, if the document's parsing completed and it may be edited and updated.
-
-
Constructor Details
-
COSDocumentState
public COSDocumentState()
-
-
Method Details
-
setParsing
public void setParsing(boolean parsing) Sets theparsingstate of the document.- Parameters:
parsing- Theparsingstate to set.
-
isAcceptingUpdates
public boolean isAcceptingUpdates()Returnstrue, if the document´sparsingis completed and it may be updated.- Returns:
true, if the document´sparsingis completed and it may be updated.
-