pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1607927 - in /pdfbox/trunk: examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Date Fri, 04 Jul 2014 20:03:21 GMT
Author: jahewson
Date: Fri Jul  4 20:03:20 2014
New Revision: 1607927

URL: http://svn.apache.org/r1607927
Log:
PDFBOX-2179: remove unused resetEngine() API

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java?rev=1607927&r1=1607926&r2=1607927&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
Fri Jul  4 20:03:20 2014
@@ -453,10 +453,6 @@ public class LucenePDFDocument
             {
                 stripper = new PDFTextStripper();
             }
-            else
-            {
-                stripper.resetEngine();
-            }
             stripper.writeText(pdfDocument, writer);
 
             // Note: the buffer to string operation is costless;

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java?rev=1607927&r1=1607926&r2=1607927&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java Fri Jul
 4 20:03:20 2014
@@ -159,16 +159,6 @@ public class PDFStreamEngine
     }
 
     /**
-     * This method must be called between processing documents. The PDFStreamEngine caches
-     * information for the document between pages and this will release the cached information.
-     * This only needs to be called if processing a new document.
-     */
-    public void resetEngine()
-    {
-        // overridden in subclasses
-    }
-
-    /**
      * Initialises a stream for processing.
      *
      * @param drawingSize the size of the page

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java?rev=1607927&r1=1607926&r2=1607927&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java Fri Jul
 4 20:03:20 2014
@@ -242,8 +242,7 @@ public class PDFTextStripper extends PDF
         return outputStream.toString();
     }
 
-    @Override
-    public void resetEngine()
+    private void resetEngine()
     {
         currentPageNo = 0;
         document = null;



Mime
View raw message