Package org.apache.xmlgraphics.ps
Class PSDictionary
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.xmlgraphics.ps.PSDictionary
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map
- Direct Known Subclasses:
PSPageDeviceDictionary
public class PSDictionary extends java.util.HashMap
This class is used to encapsulate postscript dictionary objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PSDictionary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
static PSDictionary
valueOf(java.lang.String str)
Parses a given a dictionary string and returns an object
-
-
-
Method Detail
-
valueOf
public static PSDictionary valueOf(java.lang.String str) throws PSDictionaryFormatException
Parses a given a dictionary string and returns an object- Parameters:
str
- dictionary string- Returns:
- dictionary object
- Throws:
PSDictionaryFormatException
- thrown in the event that a parsing error occurred
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Map
- Overrides:
equals
in classjava.util.AbstractMap
- Parameters:
obj
- object to test equality against- Returns:
- whether a given object is equal to this dictionary object
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map
- Overrides:
hashCode
in classjava.util.AbstractMap
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractMap
-
-