pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1589346 - in /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox: cos/COSDocument.java pdmodel/PDDocument.java
Date Wed, 23 Apr 2014 06:21:09 GMT
Author: tilman
Date: Wed Apr 23 06:21:08 2014
New Revision: 1589346

URL: http://svn.apache.org/r1589346
Log:
PDFBOX-2039: implement Closeable as suggested by Andrei Solntsev

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1589346&r1=1589345&r2=1589346&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java Wed Apr
23 06:21:08 2014
@@ -16,6 +16,7 @@
  */
 package org.apache.pdfbox.cos;
 
+import java.io.Closeable;
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -42,7 +43,7 @@ import org.apache.pdfbox.persistence.uti
  * @author <a href="ben@benlitchfield.com">Ben Litchfield</a>
  * 
  */
-public class COSDocument extends COSBase
+public class COSDocument extends COSBase implements Closeable
 {
 
     /**

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1589346&r1=1589345&r2=1589346&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Wed
Apr 23 06:21:08 2014
@@ -22,6 +22,7 @@ import java.awt.print.Printable;
 import java.awt.print.PrinterException;
 import java.awt.print.PrinterJob;
 import java.io.BufferedInputStream;
+import java.io.Closeable;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
@@ -85,7 +86,7 @@ import org.apache.pdfbox.pdmodel.interac
  * @author <a href="mailto:ben@benlitchfield.com">Ben Litchfield</a>
  * @version $Revision: 1.47 $
  */
-public class PDDocument implements Pageable
+public class PDDocument implements Pageable, Closeable
 {
 
     private COSDocument document;



Mime
View raw message