关于TIKA无法解析的文件,TIKA可以提供哪些类型的反馈?我正在尝试根据TIKA告诉我的情况来决定是否为运营团队提供最终用户反馈或反馈,或者两者兼而有之。例如,如果MS Word文档受密码保护,我可以将其传递回最终用户,以便对其采取纠正措施。
发布于 2013-01-22 19:49:03
你应该寻找像ChmParsingException,EncryptedDocumentException,MimeTypeException这样的TikaException的子类来查找特定于Tika的错误...
格式解析器的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 parsedhttps://stackoverflow.com/questions/14457458
复制相似问题