You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2019/07/23 15:02:16 UTC
[tika] 01/02: Add more options to TikaTest
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit cdba490681684385e5f994fcf86cea6ba8082880
Author: TALLISON <ta...@apache.org>
AuthorDate: Tue Jul 23 10:56:39 2019 -0400
Add more options to TikaTest
---
tika-core/src/test/java/org/apache/tika/TikaTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tika-core/src/test/java/org/apache/tika/TikaTest.java b/tika-core/src/test/java/org/apache/tika/TikaTest.java
index 91e6dc7..fe8606b 100644
--- a/tika-core/src/test/java/org/apache/tika/TikaTest.java
+++ b/tika-core/src/test/java/org/apache/tika/TikaTest.java
@@ -242,6 +242,12 @@ public abstract class TikaTest {
}
}
+ protected List<Metadata> getRecursiveMetadata(Path path, Parser parser, boolean suppressException) throws Exception {
+ try (TikaInputStream tis = TikaInputStream.get(path)) {
+ return getRecursiveMetadata(tis, parser, new ParseContext(), new Metadata(), suppressException);
+ }
+ }
+
protected List<Metadata> getRecursiveMetadata(Path p, boolean suppressException) throws Exception {
try (TikaInputStream tis = TikaInputStream.get(p)) {
return getRecursiveMetadata(tis, new ParseContext(), new Metadata(), suppressException);