pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1726863 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java
Date Tue, 26 Jan 2016 20:00:07 GMT
Author: tilman
Date: Tue Jan 26 20:00:07 2016
New Revision: 1726863

URL: http://svn.apache.org/viewvc?rev=1726863&view=rev
Log:
PDFBOX-2852: replace deprecated calls; deprecate getCOSStream

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java?rev=1726863&r1=1726862&r2=1726863&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/PDXObject.java Tue
Jan 26 20:00:07 2016
@@ -120,8 +120,8 @@ public class PDXObject implements COSObj
     protected PDXObject(PDDocument document, COSName subtype)
     {
         stream = new PDStream(document);
-        stream.getStream().setName(COSName.TYPE, COSName.XOBJECT.getName());
-        stream.getStream().setName(COSName.SUBTYPE, subtype.getName());
+        stream.getCOSObject().setName(COSName.TYPE, COSName.XOBJECT.getName());
+        stream.getCOSObject().setName(COSName.SUBTYPE, subtype.getName());
     }
 
     /**
@@ -137,10 +137,12 @@ public class PDXObject implements COSObj
     /**
      * Returns the stream.
      * @return The stream for this object.
+     * @deprecated use {@link #getCOSObject() }
      */
+    @Deprecated
     public final COSStream getCOSStream()
     {
-        return stream.getStream();
+        return stream.getCOSObject();
     }
 
     /**



Mime
View raw message