Package org.apache.pdfbox.debugger
Class PDFDebugger.DocumentOpener
java.lang.Object
org.apache.pdfbox.debugger.PDFDebugger.DocumentOpener
- Enclosing class:
- PDFDebugger
Internal class to avoid double code in password entry loop.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract PDDocument
open()
Override to load the actual input type (File, URL, stream), don't call it directly!(package private) final PDDocument
parse()
Call this!
-
Field Details
-
password
String password
-
-
Constructor Details
-
DocumentOpener
DocumentOpener(String password)
-
-
Method Details
-
open
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
Call this!- Returns:
- the PDDocument instance
- Throws:
IOException
- Cannot read document
-