pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1765476 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Tue, 18 Oct 2016 16:35:29 GMT
Author: tilman
Date: Tue Oct 18 16:35:29 2016
New Revision: 1765476

URL: http://svn.apache.org/viewvc?rev=1765476&view=rev
Log:
PDFBOX-2852: improve javadoc

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1765476&r1=1765475&r2=1765476&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Tue Oct 18
16:35:29 2016
@@ -853,7 +853,7 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws InvalidPasswordException If the password is incorrect.
+     * @throws InvalidPasswordException If the file required a non-empty password.
      * @throws IOException in case of a file reading or parsing error
      */
     public static PDDocument load(File file) throws InvalidPasswordException, IOException
@@ -869,7 +869,7 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws InvalidPasswordException If the password is incorrect.
+     * @throws InvalidPasswordException If the file required a non-empty password.
      * @throws IOException in case of a file reading or parsing error
      */
     public static PDDocument load(File file, MemoryUsageSetting memUsageSetting)
@@ -978,8 +978,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the PDF required a non-empty password.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input) throws InvalidPasswordException, IOException
     {
@@ -996,8 +996,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the PDF required a non-empty password.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input, MemoryUsageSetting memUsageSetting)
             throws InvalidPasswordException, IOException
@@ -1015,7 +1015,7 @@ public class PDDocument implements Close
      * @return loaded document
      * 
      * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input, String password)
             throws InvalidPasswordException, IOException
@@ -1034,7 +1034,7 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws IOException in case of a file reading or parsing error
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input, String password, InputStream keyStore,
String alias)
             throws IOException
@@ -1054,7 +1054,7 @@ public class PDDocument implements Close
      * @return loaded document
      * 
      * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input, String password, MemoryUsageSetting
memUsageSetting)
             throws InvalidPasswordException, IOException
@@ -1075,7 +1075,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the password is incorrect.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(InputStream input, String password, InputStream keyStore,

                                   String alias, MemoryUsageSetting memUsageSetting) throws
IOException
@@ -1102,8 +1103,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the PDF required a non-empty password.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(byte[] input) throws InvalidPasswordException, IOException
     {
@@ -1119,7 +1120,7 @@ public class PDDocument implements Close
      * @return loaded document
      * 
      * @throws InvalidPasswordException If the password is incorrect.
-     * @throws IOException in case of a file reading or parsing error
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(byte[] input, String password)
             throws InvalidPasswordException, IOException
@@ -1137,7 +1138,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the password is incorrect.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(byte[] input, String password, InputStream keyStore, 
             String alias) throws IOException
@@ -1156,7 +1158,8 @@ public class PDDocument implements Close
      * 
      * @return loaded document
      * 
-     * @throws IOException in case of a file reading or parsing error
+     * @throws InvalidPasswordException If the password is incorrect.
+     * @throws IOException In case of a reading or parsing error.
      */
     public static PDDocument load(byte[] input, String password, InputStream keyStore, 
             String alias, MemoryUsageSetting memUsageSetting) throws IOException



Mime
View raw message