pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1765070 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Sat, 15 Oct 2016 14:00:27 GMT
Author: tilman
Date: Sat Oct 15 14:00:27 2016
New Revision: 1765070

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1765070&r1=1765069&r2=1765070&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sat
Oct 15 14:00:27 2016
@@ -48,6 +48,7 @@ import org.apache.pdfbox.pdmodel.common.
 import org.apache.pdfbox.pdmodel.common.PDRectangle;
 import org.apache.pdfbox.pdmodel.common.PDStream;
 import org.apache.pdfbox.pdmodel.encryption.AccessPermission;
+import org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException;
 import org.apache.pdfbox.pdmodel.encryption.PDEncryption;
 import org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy;
 import org.apache.pdfbox.pdmodel.encryption.SecurityHandler;
@@ -852,9 +853,10 @@ 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
      */
-    public static PDDocument load(File file) throws IOException
+    public static PDDocument load(File file) throws InvalidPasswordException, IOException
     {
         return load(file, "", MemoryUsageSetting.setupMainMemoryOnly());
     }
@@ -867,9 +869,11 @@ 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
      */
-    public static PDDocument load(File file, MemoryUsageSetting memUsageSetting) throws IOException
+    public static PDDocument load(File file, MemoryUsageSetting memUsageSetting)
+            throws InvalidPasswordException, IOException
     {
         return load(file, "", null, null, memUsageSetting);
     }
@@ -882,9 +886,11 @@ 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
      */
-    public static PDDocument load(File file, String password) throws IOException
+    public static PDDocument load(File file, String password)
+            throws InvalidPasswordException, IOException
     {
         return load(file, password, null, null, MemoryUsageSetting.setupMainMemoryOnly());
     }
@@ -898,9 +904,11 @@ 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
      */
-    public static PDDocument load(File file, String password, MemoryUsageSetting memUsageSetting)
throws IOException
+    public static PDDocument load(File file, String password, MemoryUsageSetting memUsageSetting)
+            throws InvalidPasswordException, IOException
     {
         return load(file, password, null, null, memUsageSetting);
     }
@@ -970,9 +978,10 @@ 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
      */
-    public static PDDocument load(InputStream input) throws IOException
+    public static PDDocument load(InputStream input) throws InvalidPasswordException, IOException
     {
         return load(input, "", null, null, MemoryUsageSetting.setupMainMemoryOnly());
     }
@@ -987,9 +996,11 @@ 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
      */
-    public static PDDocument load(InputStream input, MemoryUsageSetting memUsageSetting)
throws IOException
+    public static PDDocument load(InputStream input, MemoryUsageSetting memUsageSetting)
+            throws InvalidPasswordException, IOException
     {
         return load(input, "", null, null, memUsageSetting);
     }
@@ -1003,10 +1014,11 @@ 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
      */
     public static PDDocument load(InputStream input, String password)
-            throws IOException
+            throws InvalidPasswordException, IOException
     {
         return load(input, password, null, null, MemoryUsageSetting.setupMainMemoryOnly());
     }
@@ -1041,10 +1053,11 @@ 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
      */
     public static PDDocument load(InputStream input, String password, MemoryUsageSetting
memUsageSetting)
-            throws IOException
+            throws InvalidPasswordException, IOException
     {
         return load(input, password, null, null, memUsageSetting);
     }
@@ -1089,9 +1102,10 @@ 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
      */
-    public static PDDocument load(byte[] input) throws IOException
+    public static PDDocument load(byte[] input) throws InvalidPasswordException, IOException
     {
         return load(input, "");
     }
@@ -1104,9 +1118,11 @@ 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
      */
-    public static PDDocument load(byte[] input, String password) throws IOException
+    public static PDDocument load(byte[] input, String password)
+            throws InvalidPasswordException, IOException
     {
         return load(input, password, null, null);
     }



Mime
View raw message