public class PjDictionary extends PjObject
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
_h |
| Constructor and Description |
|---|
PjDictionary()
Creates an empty dictionary.
|
PjDictionary(java.util.Hashtable h)
Creates a dictionary as a wrapper around a Hashtable.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PjDictionary()
public PjDictionary(java.util.Hashtable h)
h - the Hashtable to use for this dictionary.public java.util.Hashtable getHashtable()
public long writePdf(java.io.OutputStream os)
throws java.io.IOException
writePdf in class BaseObjectos - 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 BaseObjectjava.lang.CloneNotSupportedException - if the instance can not be cloned.protected java.util.Hashtable cloneHt()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic void renumber(java.util.Hashtable map)
protected PjObject hget(PjName name) throws InvalidPdfObjectException
InvalidPdfObjectExceptionprotected PjReference hgetReference(PjName name) throws InvalidPdfObjectException
InvalidPdfObjectException