Examples of ZipUtil


Examples of com.zwl.util.ZipUtil

    CreateJbpmXml.geneXmlByDom(two.getState(), two.getPath());// 创建XML
    Date date = new Date();
    Drawpng.createPng(context.getRealPath("/") + "/jbpm/jbpm"
        + date.getYear() + date.getMonth() + date.getDate()
        + ".jpdl.xml");// 生成图片
    ZipUtil z = new ZipUtil();
    z.compress(
        context.getRealPath("/") + "/jbpm",
        context.getRealPath("/") + "/jbpm/jbpm" + date.getYear()
            + date.getMonth() + date.getDate() + ".zip", "", false);// 压缩成zip文件
    request.getSession().setAttribute("zip", context.getRealPath("/") + "/jbpm/jbpm"
        + date.getYear() + date.getMonth() + date.getDate() + ".zip");
View Full Code Here

Examples of util.io.ZipUtil

      File f=fileChooser.getSelectedFile();
      if (f!=null) {
        if (f.getName().indexOf('.') == -1) {
          f = new File(f.getAbsolutePath() + filter.getExtension());
        }
        ZipUtil zip = new ZipUtil();

        StringBuilder dir = new StringBuilder(Settings.getUserSettingsDirName())
            .append(File.separatorChar).append("lang").append(
                File.separatorChar);

        try {
          zip.zipDirectory(f, new File(dir.toString()));
          JOptionPane.showMessageDialog(this, mLocalizer.msg("exportDone", "Export Done!"));
        } catch (IOException e) {
          e.printStackTrace();
          ErrorHandler.handle(mLocalizer.msg("exportFailure", "Error while saving zip file."), e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.