jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r762813 - /jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java
Date Wed, 08 Apr 2009 04:11:11 GMT
Author: jukka
Date: Tue Apr  7 15:18:52 2009
New Revision: 762813

URL: http://svn.apache.org/viewvc?rev=762813&view=rev
Log:
JCR-1878: Use Apache Tika for text extraction

Automatically improve any configurations that use DefaultTextExtractor by making that class
extend TikaTextExtractor.

Modified:
    jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java

Modified: jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java?rev=762813&r1=762812&r2=762813&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java
(original)
+++ jackrabbit/trunk/jackrabbit-text-extractors/src/main/java/org/apache/jackrabbit/extractor/DefaultTextExtractor.java
Tue Apr  7 15:18:52 2009
@@ -19,16 +19,8 @@
 /**
  * Composite text extractor that by default contains the standard
  * text extractors found in this package.
+ *
+ * @deprecated Use {@link TikaTextExtractor} instead
  */
-public class DefaultTextExtractor extends CompositeTextExtractor {
-
-    /**
-     * Creates the default text extractor by adding instances of the standard
-     * text extractors as components.
-     */
-    public DefaultTextExtractor() {
-        addTextExtractor(new PlainTextExtractor());
-        addTextExtractor(new XMLTextExtractor());
-    }
-
+public class DefaultTextExtractor extends TikaTextExtractor {
 }



Mime
View raw message