public class DetectResult extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DetectResult.FileStatus |
| 构造器和说明 |
|---|
DetectResult(boolean detect) |
DetectResult(boolean detect,
DetectResult.FileStatus currentFileStatus,
String message) |
DetectResult(boolean detect,
org.apache.tika.mime.MimeType wantedMimeType) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isDetect()
文件是否识别成功
|
boolean |
isFileMetaProblem()
文件格式是否识别有问题
|
boolean |
isFileSelfProblem()
文件自身是否识别有问题
|
boolean |
isWantedMimeType()
文件媒体类型是所需类型
|
DetectResult |
returnInfo(String msg)
返回文件状态信息
|
void |
throwException() |
public DetectResult(boolean detect)
public DetectResult(boolean detect,
org.apache.tika.mime.MimeType wantedMimeType)
public DetectResult(boolean detect,
DetectResult.FileStatus currentFileStatus,
String message)
public DetectResult returnInfo(String msg)
msg - 状态信息public boolean isFileSelfProblem()
public boolean isFileMetaProblem()
public boolean isDetect()
public boolean isWantedMimeType()
public void throwException()
Copyright © 2024. All rights reserved.