Package eu.europa.esig.dss.pdf
Interface PdfArray
- All Superinterfaces:
PdfObject
The usage of this interface permit the user to choose the underlying PDF library use to created PDF signatures.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddspdfObject
getAsDict
(int i) Returns a dictionary entry at the position igetNumber
(int i) Retrieves the number at the position igetObject
(int i) Returns an object entry at the position igetObjectKey
(int i) Retrieves the Object key for the position ibyte[]
getStreamBytes
(int i) Retrieves the stream byte array at the position igetString
(int i) Returns a String entry at the position ivoid
setDirect
(boolean direct) Sets whether the array shall be written directly to its parentint
size()
Retrieves the array size
-
Method Details
-
size
int size()Retrieves the array size- Returns:
- the size of the current array
-
getStreamBytes
Retrieves the stream byte array at the position i- Parameters:
i
- the position- Returns:
- the found stream byte array
- Throws:
IOException
- if an exception occurs
-
getObjectKey
Retrieves the Object key for the position i- Parameters:
i
- the position- Returns:
PdfObjectKey
-
getNumber
Retrieves the number at the position i- Parameters:
i
- the position- Returns:
- the found number
-
getString
Returns a String entry at the position i- Parameters:
i
- the position- Returns:
String
-
getAsDict
Returns a dictionary entry at the position i- Parameters:
i
- the position- Returns:
PdfDict
-
getObject
Returns an object entry at the position i- Parameters:
i
- the position- Returns:
PdfObject
-
addObject
AddspdfObject
- Parameters:
pdfObject
-PdfObject
-
setDirect
void setDirect(boolean direct) Sets whether the array shall be written directly to its parent- Parameters:
direct
- whether the array shall be written directly
-