类 DetectResult
java.lang.Object
cn.toutatis.xvoid.axolotl.toolkit.tika.DetectResult
文件检测结果
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明DetectResult(boolean detect) DetectResult(boolean detect, DetectResult.FileStatus currentFileStatus, String message) DetectResult(boolean detect, org.apache.tika.mime.MimeType wantedMimeType) -
方法概要
修饰符和类型方法说明booleanisDetect()文件是否识别成功boolean文件格式是否识别有问题boolean文件自身是否识别有问题boolean文件媒体类型是所需类型returnInfo(String msg) 返回文件状态信息void
-
构造器详细资料
-
DetectResult
public DetectResult(boolean detect) -
DetectResult
public DetectResult(boolean detect, org.apache.tika.mime.MimeType wantedMimeType) -
DetectResult
-
-
方法详细资料
-
returnInfo
返回文件状态信息- 参数:
msg- 状态信息- 返回:
- 检测对象
-
isFileSelfProblem
public boolean isFileSelfProblem()文件自身是否识别有问题- 返回:
- 文件不存在或者为目录等问题
-
isFileMetaProblem
public boolean isFileMetaProblem()文件格式是否识别有问题- 返回:
- 文件格式识别有问题
-
isDetect
public boolean isDetect()文件是否识别成功- 返回:
- 是否识别成功
-
isWantedMimeType
public boolean isWantedMimeType()文件媒体类型是所需类型- 返回:
- 文件媒体类型是所需类型
-
throwException
public void throwException()
-