Author: msahyoun
Date: Sun Mar 11 21:05:42 2018
New Revision: 1826463

URL: http://svn.apache.org/viewvc?rev=1826463&view=rev
Log:
PDFBOX-4071: reinstate @throws declaration because of dependencies; needs review

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java

Modified: 
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: 
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1826463&r1=1826462&r2=1826463&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java 
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java 
Sun Mar 11 21:05:42 2018
@@ -141,8 +141,9 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
+     * @throws IOException If there is an error getting the object
      */
-    public COSObject getObjectByType(COSName type)
+    public COSObject getObjectByType(COSName type)  throws IOException
     {
         for( COSObject object : objectPool.values() )
         {
@@ -181,8 +182,9 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
+     * @throws IOException If there is an error getting the object
      */
-    public List<COSObject> getObjectsByType( String type )
+    public List<COSObject> getObjectsByType( String type )  throws IOException
     {
         return getObjectsByType( COSName.getPDFName( type ) );
     }
@@ -193,8 +195,9 @@ public class COSDocument extends COSBase
      * @param type The type of the object.
      *
      * @return This will return an object with the specified type.
+     * @throws IOException If there is an error getting the object
      */
-    public List<COSObject> getObjectsByType( COSName type )
+    public List<COSObject> getObjectsByType( COSName type )  throws IOException
     {
         List<COSObject> retval = new ArrayList<>();
         for( COSObject object : objectPool.values() )
@@ -518,8 +521,9 @@ public class COSDocument extends COSBase
      * @param key The object key.
      *
      * @return The object in the pool or a new one if it has not been parsed 
yet.
+     * @throws IOException If there is an error getting the proxy object.
      */
-    public COSObject getObjectFromPool(COSObjectKey key)
+    public COSObject getObjectFromPool(COSObjectKey key)  throws IOException
     {
         COSObject obj = null;
         if( key != null )


Reply via email to