类 DocumentPreviewModel

java.lang.Object
com.sh.system.servlet.DocumentPreviewModel

public class DocumentPreviewModel extends Object

Description:

Title:首亨软件 - 聚天平台

从以下版本开始:
2018年11月15日
  • 字段详细资料

    • log4j

      protected org.apache.logging.log4j.Logger log4j
  • 构造器详细资料

    • DocumentPreviewModel

      public DocumentPreviewModel()
  • 方法详细资料

    • previewExcel

      public String previewExcel(PreviewEvent event, String filePath, String docType) throws Exception
      预览Excel文件
      参数:
      event - PreviewEvent
      filePath - 文件路径
      docType - 文档类型
      返回:
      String
      抛出:
      Exception - Exception
    • previewTxt

      public String previewTxt(PreviewEvent event, String filePath, String docType, boolean browserOpen) throws Exception
      预览文本文件
      参数:
      event - PreviewEvent
      filePath - String
      docType - 文档类型
      返回:
      String
      抛出:
      Exception - Exception
    • previewWord

      public String previewWord(PreviewEvent event, String filePath, String docType) throws Exception
      预览word
      参数:
      event - PreviewEvent
      filePath - String
      docType - 文档类型
      返回:
      String
      抛出:
      Exception - Exception
    • previewPPT

      public String previewPPT(PreviewEvent event, String filePath, String docType) throws Exception
      预览PPT
      参数:
      event - PreviewEvent
      filePath - String
      docType - 文档类型
      返回:
      String
      抛出:
      Exception - Exception
    • previewPDF

      public String previewPDF(PreviewEvent event, String filePath) throws Exception
      预览PDF
      参数:
      event - PreviewEvent
      filePath - String
      返回:
      String
      抛出:
      Exception - Exception
    • previewPic

      public String previewPic(String filePath, String docType, boolean browserOpen)
      查看图片
      参数:
      filePath - String
      docType - 文档类型
      返回:
      String
    • previewPicByMaptalks

      public String previewPicByMaptalks(String filePath, String docType, int[] wh)
      查看图片
      参数:
      filePath - String
      docType - 文档类型
      wh - 宽高
      返回:
      String
    • previewAudio

      public String previewAudio(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType)
      查看音频
      参数:
      request - HttpServletRequest
      filePath - String
      docType - 文档类型
      返回:
      String
    • previewVideo

      public String previewVideo(jakarta.servlet.http.HttpServletRequest request, String filePath, String docType)
      查看视频
      参数:
      request - HttpServletRequest
      filePath - String
      docType - 文档类型
      返回:
      String
    • errorPage

      public String errorPage(String message)
      不支持文件类型
      参数:
      message - 错误描述
      返回:
      String