Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel

public Class PDDocumentNameDestinationDictionary

extends Object
implements COSObjectable
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.pdmodel.common.COSObjectable
Imports
java.io.IOException, org.apache.pdfbox.cos.COSArray, .COSBase, .COSDictionary, .COSName, org.apache.pdfbox.pdmodel.common.COSObjectable, org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

This encapsulates the "dictionary of names and corresponding destinations" for the /Dests entry in the document catalog.
Author
Tilman Hausherr

Field Summary

Modifier and TypeField and Description
private final COSDictionary

Constructor Summary

AccessConstructor and Description
public
PDDocumentNameDestinationDictionary(COSDictionary
The dictionary of names and corresponding destinations.
dict
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public COSDictionary

Returns:

The cos dictionary for this object.
getCOSObject
()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

public PDDestination

Returns:

The destination for that name, or null if there isn't any.
getDestination
(String
The destination name.
name
)

Returns the destination corresponding to the parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameDictionaryback to summary
private final COSDictionary nameDictionary

Constructor Detail

PDDocumentNameDestinationDictionaryback to summary
public PDDocumentNameDestinationDictionary(COSDictionary dict)

Constructor.

Parameters
dict:COSDictionary

The dictionary of names and corresponding destinations.

Method Detail

getCOSObjectback to summary
public COSDictionary getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

Returns:COSDictionary

The cos dictionary for this object.

Annotations
@Override
getDestinationback to summary
public PDDestination getDestination(String name) throws IOException

Returns the destination corresponding to the parameter.

Parameters
name:String

The destination name.

Returns:PDDestination

The destination for that name, or null if there isn't any.

Exceptions
IOException:
if something goes wrong when creating the destination object.