类 DocumentPreviewModel
java.lang.Object
com.sh.system.servlet.DocumentPreviewModel
Description:
Title:首亨软件 - 聚天平台
- 从以下版本开始:
- 2018年11月15日
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明不支持文件类型previewAudio(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType) 查看音频previewExcel(PreviewEvent event, String filePath, String docType) 预览Excel文件previewPDF(PreviewEvent event, String filePath) 预览PDFpreviewPic(String filePath, String docType, boolean browserOpen) 查看图片previewPicByMaptalks(String filePath, String docType, int[] wh) 查看图片previewPPT(PreviewEvent event, String filePath, String docType) 预览PPTpreviewTxt(PreviewEvent event, String filePath, String docType, boolean browserOpen) 预览文本文件previewVideo(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType) 查看视频previewWord(PreviewEvent event, String filePath, String docType) 预览word
-
字段详细资料
-
log4j
protected org.apache.logging.log4j.Logger log4j
-
-
构造器详细资料
-
DocumentPreviewModel
public DocumentPreviewModel()
-
-
方法详细资料
-
previewExcel
预览Excel文件- 参数:
event- PreviewEventfilePath- 文件路径docType- 文档类型- 返回:
- String
- 抛出:
Exception- Exception
-
previewTxt
public String previewTxt(PreviewEvent event, String filePath, String docType, boolean browserOpen) throws Exception 预览文本文件- 参数:
event- PreviewEventfilePath- StringdocType- 文档类型- 返回:
- String
- 抛出:
Exception- Exception
-
previewWord
预览word- 参数:
event- PreviewEventfilePath- StringdocType- 文档类型- 返回:
- String
- 抛出:
Exception- Exception
-
previewPPT
预览PPT- 参数:
event- PreviewEventfilePath- StringdocType- 文档类型- 返回:
- String
- 抛出:
Exception- Exception
-
previewPDF
预览PDF- 参数:
event- PreviewEventfilePath- String- 返回:
- String
- 抛出:
Exception- Exception
-
previewPic
查看图片- 参数:
filePath- StringdocType- 文档类型- 返回:
- String
-
previewPicByMaptalks
查看图片- 参数:
filePath- StringdocType- 文档类型wh- 宽高- 返回:
- String
-
previewAudio
public String previewAudio(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType) 查看音频- 参数:
request- HttpServletRequestfilePath- StringdocType- 文档类型- 返回:
- String
-
previewVideo
public String previewVideo(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType) 查看视频- 参数:
request- HttpServletRequestfilePath- StringdocType- 文档类型- 返回:
- String
-
errorPage
不支持文件类型- 参数:
message- 错误描述- 返回:
- String
-