com.itextpdf.text.pdf.parser
Class PdfContentStreamProcessor.ResourceDictionary

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.ResourceDictionary
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
private  List<PdfDictionary> resourcesStack
           
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
PdfContentStreamProcessor.ResourceDictionary()
           
 
Method Summary
 PdfObject getDirectObject(PdfName key)
          Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object.
 void pop()
           
 void push(PdfDictionary resources)
           
 
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resourcesStack

private List<PdfDictionary> resourcesStack
Constructor Detail

PdfContentStreamProcessor.ResourceDictionary

public PdfContentStreamProcessor.ResourceDictionary()
Method Detail

push

public void push(PdfDictionary resources)

pop

public void pop()

getDirectObject

public PdfObject getDirectObject(PdfName key)
Description copied from class: PdfDictionary
Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object. This method will never return a PdfIndirectReference object.

Overrides:
getDirectObject in class PdfDictionary
Parameters:
key - A key for the PdfObject to be returned
Returns:
A direct PdfObject or null

Hosted by Hostbasket