|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
public class PjDictionary
A representation of the PDF dictionary type.
Field Summary | |
---|---|
protected java.util.Hashtable |
_h
|
Constructor Summary | |
---|---|
PjDictionary()
Creates an empty dictionary. |
|
PjDictionary(java.util.Hashtable h)
Creates a dictionary as a wrapper around a Hashtable. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep copy of this object. |
protected java.util.Hashtable |
cloneHt()
|
java.util.Hashtable |
getHashtable()
Returns the Hashtable used to represent this dictionary. |
protected PjObject |
hget(PjName name)
|
protected PjReference |
hgetReference(PjName name)
|
void |
renumber(java.util.Hashtable map)
Renumbers object references within this object. |
long |
writePdf(java.io.OutputStream os)
Writes this dictionary to a stream in PDF format. |
Methods inherited from class com.etymon.pj.object.BaseObject |
---|
toString, write, write, write, writeln |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable _h
Constructor Detail |
---|
public PjDictionary()
public PjDictionary(java.util.Hashtable h)
h
- the Hashtable to use for this dictionary.Method Detail |
---|
public java.util.Hashtable getHashtable()
public long writePdf(java.io.OutputStream os) throws java.io.IOException
writePdf
in class BaseObject
os
- the stream to write to.
java.io.IOException
- if an I/O error occurs.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class BaseObject
java.lang.CloneNotSupportedException
- if the instance can not be cloned.protected java.util.Hashtable cloneHt() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void renumber(java.util.Hashtable map)
renumber
in class PjObject
map
- the table of object number mappings. Each
object number is looked up by key in the hash table, and
the associated value is assigned as the new object number.
The map hash table should consist of PjNumber keys and
PjReference values.protected PjObject hget(PjName name) throws InvalidPdfObjectException
InvalidPdfObjectException
protected PjReference hgetReference(PjName name) throws InvalidPdfObjectException
InvalidPdfObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |