You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2017/07/13 17:15:33 UTC
svn commit: r1801852 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Author: tilman
Date: Thu Jul 13 17:15:33 2017
New Revision: 1801852
URL: http://svn.apache.org/viewvc?rev=1801852&view=rev
Log:
PDFBOX-3869: put warning into javadoc
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1801852&r1=1801851&r2=1801852&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Thu Jul 13 17:15:33 2017
@@ -49,6 +49,11 @@ public class COSStream extends COSDictio
/**
* Creates a new stream with an empty dictionary.
+ * <p>
+ * Try to avoid using this constructor because it creates a new scratch file in memory. Instead,
+ * use {@link COSDocument#createCOSStream() document.getDocument().createCOSStream()} which will
+ * use the existing scratch file (in memory or in temp file) of the document.
+ * </p>
*/
public COSStream()
{