Class PdfObjectTree
java.lang.Object
eu.europa.esig.dss.pdf.modifications.PdfObjectTree
Represents a PDF object chain from a root to the current object
-
Constructor Summary
ConstructorDescriptionConstructor without starting keyPdfObjectTree
(String key) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a keyvoid
addReference
(Number objectNumber) Adds a numeric reference numbercopy()
Creates a copy of the object (changes within a copy will not affect the original object)boolean
int
Returns the deepness of the current objects chainGets a complete key chainReturns a last keyint
hashCode()
boolean
isProcessedReference
(Number objectNumber) Checks whether a reference to the given object by number has been already processed in this treevoid
This method allows to specify that a stream have been processedtoString()
-
Constructor Details
-
PdfObjectTree
public PdfObjectTree()Constructor without starting key -
PdfObjectTree
Default constructor- Parameters:
key
-String
root key
-
-
Method Details
-
copy
Creates a copy of the object (changes within a copy will not affect the original object)- Returns:
PdfObjectTree
copy
-
addKey
Adds a key- Parameters:
key
-String
-
addReference
Adds a numeric reference number- Parameters:
objectNumber
-Number
-
setStream
public void setStream()This method allows to specify that a stream have been processed -
getKeyChain
Gets a complete key chain- Returns:
- a list of
String
s
-
getChainDeepness
public int getChainDeepness()Returns the deepness of the current objects chain- Returns:
- chain deepness
-
getLastKey
Returns a last key- Returns:
String
-
isProcessedReference
Checks whether a reference to the given object by number has been already processed in this tree- Parameters:
objectNumber
-Number
reference number to an object- Returns:
- TRUE if the reference has been already processed, FALSE otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-