incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r939644 - /incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java
Date Fri, 30 Apr 2010 11:39:29 GMT
Author: thorsten
Date: Fri Apr 30 11:39:29 2010
New Revision: 939644

URL: http://svn.apache.org/viewvc?rev=939644&view=rev
Log:
DROIDS-80
Reporter: Richard Frovarp
Patch: Richard Frovarp
review: thorsten

Modified:
    incubator/droids/trunk/droids-tika/src/main/java/org/apache/droids/tika/TikaHtmlParser.java

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=939644&r1=939643&r2=939644&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
Fri Apr 30 11:39:29 2010
@@ -37,10 +37,6 @@ import org.xml.sax.SAXException;
 
 public class TikaHtmlParser extends Loggable implements Parser {
 
-  private Metadata metadata = null;
-
-  private org.apache.tika.parser.Parser parser = null;
-
   private Map<String, String> elements= null;
 
   public Map<String, String> getElements() {
@@ -56,8 +52,8 @@ public class TikaHtmlParser extends Logg
 
   public Parse parse(ContentEntity entity, Link link) throws IOException, DroidsException
{
     // Init Tika objects
-    parser = new AutoDetectParser();
-    metadata = new Metadata();
+    org.apache.tika.parser.Parser parser = new AutoDetectParser();
+    Metadata metadata = new Metadata();
     
     String charset = entity.getCharset();
     if (charset == null) {



Mime
View raw message