Package org.jahia.utils.zip

Examples of org.jahia.utils.zip.ZipOutputStream.finish()


        try {
            exportNodesWithBinaries(session.getRootNode(), files, zzout, tti, params);
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
        zzout.finish();
        zout.finish();
    }

    private void exportSite(final JahiaSite site, OutputStream out, Map<String, Object> params)
            throws JahiaException, RepositoryException, SAXException, IOException, JDOMException {
View Full Code Here


                site.getSiteKey()));
        final HashSet<String> tti = new HashSet<String>();
        tti.add("jnt:templatesFolder");
        exportNodesWithBinaries(session.getRootNode(), nodes, zout, tti,
                params);
        zout.finish();
    }

    private void exportSystemSite(OutputStream out, Map<String, Object> params)
            throws JahiaException, RepositoryException, SAXException, IOException, JDOMException {
        JahiaSite site = ServicesRegistry.getInstance().getJahiaSitesService().getSiteByKey(JahiaSitesBaseService.SYSTEM_SITE_KEY);
View Full Code Here

        nodes.add(session.getNode("/sites/" + site.getSiteKey() + "/categories"));

        final HashSet<String> tti = new HashSet<String>();
        tti.add("jnt:templatesFolder");
        exportNodesWithBinaries(session.getRootNode(), nodes, zout, tti, params);
        zout.finish();
    }

    public void exportZip(JCRNodeWrapper node, JCRNodeWrapper exportRoot, OutputStream out, Map<String, Object> params) throws JahiaException, RepositoryException, SAXException, IOException, JDOMException {
        ZipOutputStream zout = new ZipOutputStream(out);
        Set<JCRNodeWrapper> nodes = new HashSet<JCRNodeWrapper>();
View Full Code Here

    public void exportZip(JCRNodeWrapper node, JCRNodeWrapper exportRoot, OutputStream out, Map<String, Object> params) throws JahiaException, RepositoryException, SAXException, IOException, JDOMException {
        ZipOutputStream zout = new ZipOutputStream(out);
        Set<JCRNodeWrapper> nodes = new HashSet<JCRNodeWrapper>();
        nodes.add(node);
        exportNodesWithBinaries(exportRoot == null ? node : exportRoot, nodes, zout, new HashSet<String>(),params);
        zout.finish();
    }

    public void exportNode(JCRNodeWrapper node, JCRNodeWrapper exportRoot, OutputStream out, Map<String, Object> params) throws JahiaException, RepositoryException, SAXException, IOException, JDOMException {
        TreeSet<JCRNodeWrapper> nodes = new TreeSet<JCRNodeWrapper>();
        nodes.add(node);
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.