You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2014/09/14 14:09:38 UTC
svn commit: r1624844 - in
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos:
COSDocument.java COSStream.java
Author: lehmi
Date: Sun Sep 14 12:09:38 2014
New Revision: 1624844
URL: http://svn.apache.org/r1624844
Log:
PDFBOX-2301: deprecated some methods which will be removed with 2.0.0
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/cos/COSStream.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=1624844&r1=1624843&r2=1624844&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 Sun Sep 14 12:09:38 2014
@@ -173,7 +173,7 @@ public class COSDocument extends COSBase
*
* @return The scratch file.
*
- *
+ * @deprecated direct access to the scratch file will be removed
*/
public RandomAccess getScratchFile()
{
@@ -218,6 +218,8 @@ public class COSDocument extends COSBase
*
* @return This will return an object with the specified type.
* @throws IOException If there is an error getting the object
+ *
+ * @deprecated use {@link COSDocument#getObjectByType(COSName)} instead
*/
public COSObject getObjectByType( String type ) throws IOException
{
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1624844&r1=1624843&r2=1624844&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Sun Sep 14 12:09:38 2014
@@ -102,6 +102,8 @@ public class COSStream extends COSDictio
* to new objects.
*
* @param stream The stream that have the new values in it.
+ *
+ * @deprecated will be removed
*/
public void replaceWithStream( COSStream stream )
{
@@ -116,6 +118,8 @@ public class COSStream extends COSDictio
* This will get the scratch file associated with this stream.
*
* @return The scratch file where this stream is being stored.
+ *
+ * @deprecated the direct access to the scratch file will be removed.
*/
public RandomAccess getScratchFile()
{