Interface PdfArray

All Superinterfaces:
PdfObject

public interface PdfArray extends PdfObject
The usage of this interface permit the user to choose the underlying PDF library use to created PDF signatures.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addObject(PdfObject pdfObject)
    Adds pdfObject
    getAsDict(int i)
    Returns a dictionary entry at the position i
    getNumber(int i)
    Retrieves the number at the position i
    getObject(int i)
    Returns an object entry at the position i
    getObjectKey(int i)
    Retrieves the Object key for the position i
    byte[]
    Retrieves the stream byte array at the position i
    getString(int i)
    Returns a String entry at the position i
    void
    setDirect(boolean direct)
    Sets whether the array shall be written directly to its parent
    int
    Retrieves the array size

    Methods inherited from interface eu.europa.esig.dss.pdf.PdfObject

    getParent, getValue
  • Method Details

    • size

      int size()
      Retrieves the array size
      Returns:
      the size of the current array
    • getStreamBytes

      byte[] getStreamBytes(int i) throws IOException
      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

      PdfObjectKey getObjectKey(int i)
      Retrieves the Object key for the position i
      Parameters:
      i - the position
      Returns:
      PdfObjectKey
    • getNumber

      Number getNumber(int i)
      Retrieves the number at the position i
      Parameters:
      i - the position
      Returns:
      the found number
    • getString

      String getString(int i)
      Returns a String entry at the position i
      Parameters:
      i - the position
      Returns:
      String
    • getAsDict

      PdfDict getAsDict(int i)
      Returns a dictionary entry at the position i
      Parameters:
      i - the position
      Returns:
      PdfDict
    • getObject

      PdfObject getObject(int i)
      Returns an object entry at the position i
      Parameters:
      i - the position
      Returns:
      PdfObject
    • addObject

      void addObject(PdfObject pdfObject)
      Adds pdfObject
      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