|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
public class PDFDictionary
Class representing a PDF dictionary object
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
entries
the entry map |
protected java.util.List<java.lang.String> |
order
maintains the order of the entries added to the entry map. |
| Fields inherited from class org.apache.fop.pdf.PDFObject |
|---|
log |
| Constructor Summary | |
|---|---|
PDFDictionary()
Create a new dictionary object. |
|
PDFDictionary(PDFObject parent)
Create a new dictionary object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String name)
Returns the value given a name. |
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.lang.StringBuilder textBuffer)
Writes the contents of the dictionary to a StringBuffer. |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
|---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Object> entries
protected java.util.List<java.lang.String> order
| Constructor Detail |
|---|
public PDFDictionary()
public PDFDictionary(PDFObject parent)
parent - the object's parent if any| Method Detail |
|---|
public void put(java.lang.String name,
java.lang.Object value)
name - the namevalue - the value
public 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 value
public int output(java.io.OutputStream stream)
throws java.io.IOException
output in class PDFObjectstream - the stream to write the PDF to
java.io.IOException - if there is an error writing to the stream
protected void writeDictionary(java.io.OutputStream out,
java.lang.StringBuilder textBuffer)
throws java.io.IOException
out - the OutputStream (for binary content)textBuffer - the text buffer for text output
java.io.IOException - if an I/O error occurs
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||