0

是否存在关于 TIKA 可以提供的有关其无法解析的文件的反馈类型的列表?我正在尝试根据 TIKA 告诉我的信息来决定是否为最终用户提供反馈或为运营团队提供反馈,或两者兼而有之。例如,如果 MS Word 文档受密码保护,我可以将其传回给最终用户以采取纠正措施。

4

1 回答 1

1

对于 Tika 特定错误,您应该查找TikaExceptionlike ChmParsingExceptionEncryptedDocumentException、的子类...MimeTypeException

parse()格式解析器方法的签名是

Throws:
IOException - if the document stream could not be read
SAXException - if the SAX events could not be processed
TikaException - if the document could not be parsed
于 2013-01-22T11:49:03.090 回答