incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfrov...@apache.org
Subject svn commit: r1202363 - /incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
Date Tue, 15 Nov 2011 18:33:30 GMT
Author: rfrovarp
Date: Tue Nov 15 18:33:30 2011
New Revision: 1202363

URL: http://svn.apache.org/viewvc?rev=1202363&view=rev
Log:
Fix Tika parser call in Trunk

Modified:
    incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
  (contents, props changed)

Modified: incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java?rev=1202363&r1=1202362&r2=1202363&view=diff
==============================================================================
--- incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
(original)
+++ incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
Tue Nov 15 18:33:30 2011
@@ -31,6 +31,7 @@ import org.apache.droids.parse.html.Link
 import org.apache.tika.exception.TikaException;
 import org.apache.tika.metadata.Metadata;
 import org.apache.tika.parser.AutoDetectParser;
+import org.apache.tika.parser.ParseContext;
 import org.apache.tika.sax.TeeContentHandler;
 import org.xml.sax.SAXException;
 
@@ -66,7 +67,7 @@ public class TikaHtmlParser implements P
 
     InputStream instream = entity.obtainContent();
     try {
-      parser.parse(instream, parallelHandler, metadata);
+      parser.parse(instream, parallelHandler, metadata, new ParseContext());
       
       return new ParseImpl(data.toString(), extractor.getLinks());
     } catch (SAXException ex) {

Propchange: incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Tue Nov 15 18:33:30 2011
@@ -0,0 +1 @@
+/incubator/droids/branches/0.1.x/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java:1127755-1202362



Mime
View raw message