Package com.itextpdf.text.pdf.parser
Class PdfContentStreamProcessor.ResourceDictionary
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.ResourceDictionary
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PdfContentStreamProcessor
private static class PdfContentStreamProcessor.ResourceDictionary extends PdfDictionary
A resource dictionary that allows stack-like behavior to support resource dictionary inheritance
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<PdfDictionary>resourcesStack
-
Constructor Summary
Constructors Constructor Description ResourceDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfObjectgetDirectObject(PdfName key)Returns thePdfObjectassociated to the specified key, resolving a possible indirect reference to a direct object.voidpop()voidpush(PdfDictionary resources)-
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Field Detail
-
resourcesStack
private final java.util.List<PdfDictionary> resourcesStack
-
-
Method Detail
-
push
public void push(PdfDictionary resources)
-
pop
public void pop()
-
getDirectObject
public PdfObject getDirectObject(PdfName key)
Description copied from class:PdfDictionaryReturns thePdfObjectassociated to the specified key, resolving a possible indirect reference to a direct object. This method will never return aPdfIndirectReferenceobject.- Overrides:
getDirectObjectin classPdfDictionary- Parameters:
key- A key for thePdfObjectto be returned- Returns:
- A direct
PdfObjectornull
-
-