Package org.meshcms.util

Examples of org.meshcms.util.ZipArchiver


    } catch (FileNotFoundException ex) {
      sc.log("can't create stream on " + bakFile, ex);
      return false;
    }

    new ZipArchiver(dir, os).process();

    try {
      os.close();
    } catch (IOException ex) {
      sc.log("Can't close file " + bakFile, ex);
View Full Code Here


      fileName = Utils.removeExtension(fileName);
    }

    response.setHeader("Content-Disposition", "attachment; filename=\"" +
        fileName + ".zip\"");
    new ZipArchiver(file, response.getOutputStream()).process();
  }
View Full Code Here

TOP

Related Classes of org.meshcms.util.ZipArchiver

Copyright © 2018 www.massapicom. 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.