pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1719958 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSArray.java
Date Mon, 14 Dec 2015 17:06:59 GMT
Author: tilman
Date: Mon Dec 14 17:06:59 2015
New Revision: 1719958

URL: http://svn.apache.org/viewvc?rev=1719958&view=rev
Log:
PDFBOX-3114: implement COSUpdateInfo interface to avoid wrong decision in COSWriter.addObjectToWrite()

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSArray.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSArray.java?rev=1719958&r1=1719957&r2=1719958&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSArray.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSArray.java Mon Dec 14 17:06:59
2015
@@ -29,9 +29,10 @@ import org.apache.pdfbox.pdmodel.common.
  *
  * @author Ben Litchfield
  */
-public class COSArray extends COSBase implements Iterable<COSBase>
+public class COSArray extends COSBase implements Iterable<COSBase>, COSUpdateInfo
 {
     private final List<COSBase> objects = new ArrayList<COSBase>();
+    private boolean needToBeUpdated;
 
     /**
      * Constructor.
@@ -514,6 +515,18 @@ public class COSArray extends COSBase im
         return visitor.visitFromArray(this);
     }
 
+    @Override
+    public boolean isNeedToBeUpdated() 
+    {
+      return needToBeUpdated;
+    }
+    
+    @Override
+    public void setNeedToBeUpdated(boolean flag) 
+    {
+      needToBeUpdated = flag;
+    }
+
     /**
      * This will take an COSArray of numbers and convert it to a float[].
      *



Mime
View raw message