com.etymon.pj.object
Class PjEncoding
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjEncoding
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjEncoding
- extends PjDictionary
A representation of a PDF font encoding dictionary.
Constructor Summary |
PjEncoding()
Creates a new encoding dictionary. |
PjEncoding(java.util.Hashtable h)
Creates an encoding dictionary as a wrapper around a Hashtable. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjEncoding
public PjEncoding()
- Creates a new encoding dictionary.
PjEncoding
public PjEncoding(java.util.Hashtable h)
- Creates an encoding dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setBaseEncoding
public void setBaseEncoding(PjName baseEncoding)
setBaseEncoding
public void setBaseEncoding(PjReference baseEncoding)
getBaseEncoding
public PjObject getBaseEncoding()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setDifferences
public void setDifferences(PjArray differences)
setDifferences
public void setDifferences(PjReference differences)
getDifferences
public PjObject getDifferences()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
isLike
public static boolean isLike(PjDictionary dictionary)
- Examines a dictionary to see if it is a PDF font encoding
dictionary.
- Parameters:
dictionary
- the dictionary to examine.
- Returns:
- true if the dictionary could be interpreted as a
valid PjEncoding object.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a deep copy of this object.
- Overrides:
clone
in class PjDictionary
- Returns:
- a deep copy of this object.
- Throws:
java.lang.CloneNotSupportedException
- if the instance can not be cloned.