类 DocUtils

java.lang.Object
com.gdxsoft.easyweb.document.DocUtils

public class DocUtils extends Object
  • 构造器详细资料

    • DocUtils

      public DocUtils()
  • 方法详细资料

    • compress

      public static boolean compress(String exportFilePathAndName, String sourcePath)
    • zipWith7zip

      public static boolean zipWith7zip(String exportFilePathAndName, String sourcePath)
      用7z压缩文件,windows下用原生的程序压缩docx或odt文件会出现word文件不认的情况,原因未知
      参数:
      exportFilePathAndName -
      sourcePath -
      返回:
    • builderTempPath

      public static String builderTempPath(String filePath) throws IOException
      抛出:
      IOException
    • clearTempPath

      public static void clearTempPath(String filePath)