org.apache.fop.pdf
Class PDFDictionary
- PDFWritable
public class PDFDictionary
Class representing a PDF dictionary object
protected Map | entries - the entry map
|
protected List | order - maintains the order of the entries added to the entry map.
|
Object | get(String name) - Returns the value given a name.
|
protected int | output(OutputStream stream) -
|
void | put(String name, Object value) - Puts a new name/value pair.
|
void | put(String name, int value) - Puts a new name/value pair.
|
protected void | writeDictionary(OutputStream out, Writer writer) - Writes the contents of the dictionary to a StringBuffer.
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
entries
protected Map entries
the entry map
order
protected List order
maintains the order of the entries added to the entry map. Whenever you modify
"entries", always make sure you adjust this list accordingly.
PDFDictionary
public PDFDictionary()
Create a new dictionary object.
PDFDictionary
public PDFDictionary(PDFObject parent)
Create a new dictionary object.
parent
- the object's parent if any
get
public Object get(String name)
Returns the value given a name.
name
- the name of the value
- the value or null, if there's no value with the given name.
output
protected int output(OutputStream stream)
throws IOException
- output in interface PDFObject
put
public void put(String name,
Object value)
Puts a new name/value pair.
name
- the namevalue
- the value
put
public void put(String name,
int value)
Puts a new name/value pair.
name
- the namevalue
- the value
writeDictionary
protected void writeDictionary(OutputStream out,
Writer writer)
throws IOException
Writes the contents of the dictionary to a StringBuffer.
out
- the OutputStream (for binary content)writer
- the Writer (for text content, wraps the above OutputStream)
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.