Module org.sejda.sambox
Class PDAppearanceEntry
java.lang.Object
org.sejda.sambox.pdmodel.interactive.annotation.PDAppearanceEntry
- All Implemented Interfaces:
COSObjectable
An entry in an appearance dictionary. May contain either a single appearance stream or an appearance subdictionary.
- Author:
- John Hewson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the entry as an appearance stream.Returns the entry as an appearance subdictionary.booleanisStream()Returns true if this entry is an appearance stream.booleanReturns true if this entry is an appearance subdictionary.
-
Constructor Details
-
PDAppearanceEntry
- Parameters:
entry-
-
-
Method Details
-
getCOSObject
- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The
COSBasethat matches this Java object.
-
isSubDictionary
public boolean isSubDictionary()Returns true if this entry is an appearance subdictionary. -
isStream
public boolean isStream()Returns true if this entry is an appearance stream. -
getAppearanceStream
Returns the entry as an appearance stream.- Throws:
IllegalStateException- if this entry is not an appearance stream
-
getSubDictionary
Returns the entry as an appearance subdictionary.- Throws:
IllegalStateException- if this entry is not an appearance subdictionary
-