类的使用
cn.toutatis.xvoid.axolotl.excel.support.tika.DetectResult
使用DetectResult的程序包
-
cn.toutatis.xvoid.axolotl.excel中DetectResult的使用
参数类型为DetectResult的cn.toutatis.xvoid.axolotl.excel中的构造器 -
cn.toutatis.xvoid.axolotl.excel.support.tika中DetectResult的使用
修饰符和类型方法说明static DetectResultstatic DetectResultstatic DetectResultTikaShell.detect(File file, org.apache.tika.mime.MimeType mimeType, boolean throwException, boolean alreadyPreCheck) 判断文件是否正常并且为需要的格式 1.文件预检查 2.文件后缀是否匹配 3.文件媒体类型是否匹配static DetectResultTikaShell.detectThrowException(File file, org.apache.tika.mime.MimeType mimeType) static DetectResultTikaShell.preCheckFileNormal(File file) 预检查文件是否正常static DetectResultTikaShell.preCheckFileNormal(File file, boolean throwException) 预检查文件是否正常static DetectResultTikaShell.preCheckFileNormalThrowException(File file) 预检查文件是否正常并抛出异常DetectResult.returnInfo(String msg) 返回文件状态信息