Class PDDictionaryWrapper

java.lang.Object
org.apache.pdfbox.pdmodel.common.PDDictionaryWrapper
All Implemented Interfaces:
COSObjectable
Direct Known Subclasses:
PDAttributeObject, PDTypedDictionaryWrapper, PDUserProperty

public class PDDictionaryWrapper extends Object implements COSObjectable
A wrapper for a COS dictionary.
Version:
$Revision: $
Author:
Johannes Koch
  • Constructor Details

    • PDDictionaryWrapper

      public PDDictionaryWrapper()
      Default constructor
    • PDDictionaryWrapper

      public PDDictionaryWrapper(COSDictionary dictionary)
      Creates a new instance with a given COS dictionary.
      Parameters:
      dictionary - the dictionary
  • Method Details

    • getCOSObject

      public COSBase getCOSObject()
      Convert this standard java object to a COS object.
      Specified by:
      getCOSObject in interface COSObjectable
      Returns:
      The cos object that matches this Java object.
    • getCOSDictionary

      protected COSDictionary getCOSDictionary()
      Gets the COS dictionary.
      Returns:
      the COS dictionary
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object