Class PDFDebugger.DocumentOpener

java.lang.Object
org.apache.pdfbox.debugger.PDFDebugger.DocumentOpener
Enclosing class:
PDFDebugger

abstract static class PDFDebugger.DocumentOpener extends Object
Internal class to avoid double code in password entry loop.
  • Field Details

  • Constructor Details

    • DocumentOpener

      DocumentOpener(String password)
  • Method Details

    • open

      abstract PDDocument open() throws IOException
      Override to load the actual input type (File, URL, stream), don't call it directly!
      Returns:
      the PDDocument instance
      Throws:
      IOException - Cannot read document
    • parse

      final PDDocument parse() throws IOException
      Call this!
      Returns:
      the PDDocument instance
      Throws:
      IOException - Cannot read document