tika-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r576341 - /incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java
Date Mon, 17 Sep 2007 10:13:12 GMT
Author: jukka
Date: Mon Sep 17 03:13:11 2007
New Revision: 576341

URL: http://svn.apache.org/viewvc?rev=576341&view=rev
Log:
TIKA-15: Applied patch from Keith Bennett.

Modified:
    incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java

Modified: incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java
URL: http://svn.apache.org/viewvc/incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java?rev=576341&r1=576340&r2=576341&view=diff
==============================================================================
--- incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java (original)
+++ incubator/tika/trunk/src/main/java/org/apache/tika/utils/Utils.java Mon Sep 17 03:13:11
2007
@@ -72,7 +72,6 @@
                 output.print(ct.getName() + ": ");
                 output.println(ct.getValue());
             } else if (ct.getValues() != null) {
-
                 output.print(ct.getName() + ": ");
                 for (int j = 0; j < ct.getValues().length; j++) {
                     if (j == 0)
@@ -81,6 +80,9 @@
                         output.println("\t" + ct.getValues()[j]);
                     }
                 }
+            } else { // there are no values, but there is a Content object
+                System.out.println(
+                        "Content '" + ct.getName() + "' has no values.");
             }
         }
     }



Mime
View raw message