public class PDFDictionary extends PDFObject
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
entries
the entry map
|
protected java.util.List |
order
maintains the order of the entries added to the entry map.
|
DATE_FORMAT, log
Constructor and Description |
---|
PDFDictionary()
Create a new dictionary object.
|
PDFDictionary(PDFObject parent)
Create a new dictionary object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name)
Returns the value given a name.
|
protected int |
output(java.io.OutputStream stream)
Write the PDF represention of this object
|
void |
put(java.lang.String name,
int value)
Puts a new name/value pair.
|
void |
put(java.lang.String name,
java.lang.Object value)
Puts a new name/value pair.
|
protected void |
writeDictionary(java.io.OutputStream out,
java.io.Writer writer)
Writes the contents of the dictionary to a StringBuffer.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString
protected java.util.Map entries
protected java.util.List order
public PDFDictionary()
public PDFDictionary(PDFObject parent)
parent
- the object's parent if anypublic void put(java.lang.String name, java.lang.Object value)
name
- the namevalue
- the valuepublic void put(java.lang.String name, int value)
name
- the namevalue
- the valuepublic java.lang.Object get(java.lang.String name)
name
- the name of the valueprotected int output(java.io.OutputStream stream) throws java.io.IOException
protected void writeDictionary(java.io.OutputStream out, java.io.Writer writer) throws java.io.IOException
out
- the OutputStream (for binary content)writer
- the Writer (for text content, wraps the above OutputStream)java.io.IOException
- if an I/O error occursCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.