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
ConstructorsConstructorDescriptionConstructor without starting keyPdfObjectTree
(String key) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a keyvoid
addReference
(PdfObjectKey objectKey) Adds a pdf object keycopy()
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
(PdfObjectKey objectKey) 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 pdf object key- Parameters:
objectKey
-PdfObjectKey
-
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:
objectKey
-PdfObjectKey
reference number to an object- Returns:
- TRUE if the reference has been already processed, FALSE otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-