PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class PdfDictionary

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObject
      extended by it.stefanochizzolini.clown.objects.PdfDataObject
          extended by it.stefanochizzolini.clown.objects.PdfDirectObject
              extended by it.stefanochizzolini.clown.objects.PdfDictionary
All Implemented Interfaces:
Cloneable, Comparable<PdfDirectObject>, Map<PdfName,PdfDirectObject>

public class PdfDictionary
extends PdfDirectObject
implements Map<PdfName,PdfDirectObject>

PDF dictionary object [PDF:1.6:3.2.6].

Since:
0.0.0
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PdfDictionary()
           
PdfDictionary(int capacity)
           
PdfDictionary(PdfName[] keys, PdfDirectObject[] values)
           
 
Method Summary
 void clear()
           
 Object clone(File context)
          Gets the clone of the object, registered inside the given file context.
 int compareTo(PdfDirectObject obj)
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<PdfName,PdfDirectObject>> entrySet()
           
 boolean equals(Object object)
           
 PdfDirectObject get(Object key)
           
 PdfName getKey(PdfDirectObject value)
          Gets the key associated to a given value.
 int hashCode()
           
 boolean isEmpty()
           
 Set<PdfName> keySet()
           
 PdfDirectObject put(PdfName key, PdfDirectObject value)
           
 void putAll(Map<? extends PdfName,? extends PdfDirectObject> entries)
           
 PdfDirectObject remove(Object key)
           
 PdfDataObject resolve(Object key)
          Gets the dereferenced value corresponding to the given key.
 int size()
           
 String toString()
           
 Collection<PdfDirectObject> values()
           
 void writeTo(IOutputStream stream)
          Serializes the object to the given stream.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfDirectObject
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfDictionary

public PdfDictionary()

PdfDictionary

public PdfDictionary(int capacity)

PdfDictionary

public PdfDictionary(PdfName[] keys,
                     PdfDirectObject[] values)
Method Detail

clone

public Object clone(File context)
Description copied from class: PdfObject
Gets the clone of the object, registered inside the given file context.

Specified by:
clone in class PdfObject

compareTo

public int compareTo(PdfDirectObject obj)
Specified by:
compareTo in interface Comparable<PdfDirectObject>
Specified by:
compareTo in class PdfDirectObject

getKey

public PdfName getKey(PdfDirectObject value)
Gets the key associated to a given value.


resolve

public PdfDataObject resolve(Object key)
Gets the dereferenced value corresponding to the given key.

Remarks

This method takes care to resolve the value returned by get(Object).

Parameters:
key - Key whose associated value is to be returned.
Returns:
null, if the map contains no mapping for this key.
Since:
0.0.8

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: PdfObject
Serializes the object to the given stream.

Specified by:
writeTo in class PdfObject

clear

public void clear()
Specified by:
clear in interface Map<PdfName,PdfDirectObject>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<PdfName,PdfDirectObject>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<PdfName,PdfDirectObject>

entrySet

public Set<Map.Entry<PdfName,PdfDirectObject>> entrySet()
Specified by:
entrySet in interface Map<PdfName,PdfDirectObject>

equals

public boolean equals(Object object)
Specified by:
equals in interface Map<PdfName,PdfDirectObject>
Overrides:
equals in class Object

get

public PdfDirectObject get(Object key)
Specified by:
get in interface Map<PdfName,PdfDirectObject>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<PdfName,PdfDirectObject>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<PdfName,PdfDirectObject>

keySet

public Set<PdfName> keySet()
Specified by:
keySet in interface Map<PdfName,PdfDirectObject>

put

public PdfDirectObject put(PdfName key,
                           PdfDirectObject value)
Specified by:
put in interface Map<PdfName,PdfDirectObject>

putAll

public void putAll(Map<? extends PdfName,? extends PdfDirectObject> entries)
Specified by:
putAll in interface Map<PdfName,PdfDirectObject>

remove

public PdfDirectObject remove(Object key)
Specified by:
remove in interface Map<PdfName,PdfDirectObject>

size

public int size()
Specified by:
size in interface Map<PdfName,PdfDirectObject>

values

public Collection<PdfDirectObject> values()
Specified by:
values in interface Map<PdfName,PdfDirectObject>

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.