public class PdfDictionary extends PdfObject
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
_m
The contents of the dictionary.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PdfDictionary()
A protected constructor intended to be called only from
wrap(Map). |
|
PdfDictionary(java.util.Map m)
Constructs a dictionary object from a map of
PdfName keys and PdfObject
values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality.
|
protected PdfObject |
filterContents(PdfObjectFilter f)
Second stage filtering, called by
filter(PdfObjectFilter). |
java.util.Map |
getMap()
Returns the map of keys and values contained in this
dictionary.
|
int |
hashCode()
Returns a hash code for this object.
|
protected static PdfDictionary |
wrap(java.util.Map m)
A factory for fast construction of this class.
|
protected int |
writePdf(PdfWriter w,
boolean spacing)
Writes this object in PDF format.
|
protected PdfDictionary()
wrap(Map).public PdfDictionary(java.util.Map m)
PdfName keys and PdfObject
values.m - the map containing the keys and values.protected PdfObject filterContents(PdfObjectFilter f) throws PdfFormatException
PdfObjectfilter(PdfObjectFilter). This is
only called if PdfObjectFilter.preFilter(PdfObject) did not return
null.filterContents in class PdfObjectPdfFormatExceptionpublic boolean equals(java.lang.Object obj)
PdfObjectpublic java.util.Map getMap()
Map object is unmodifiable.public int hashCode()
PdfObjectprotected static PdfDictionary wrap(java.util.Map m)
Map. The calling method must ensure that the
Map is never externally modified, in order to
meet the immutability requirement of PdfObject.m - the Map to be used to back this
dictionary.protected int writePdf(PdfWriter w, boolean spacing) throws java.io.IOException
PdfObjectwritePdf in class PdfObjectw - the PdfWriter to write to.spacing - specifies whether to add white-space before
the object. A value of true enables the
addition of white-space. If the object begins with a PDF
delimiter, then this option is ignored and no white-space
is written.java.io.IOException