Package org.jahia.exceptions

Examples of org.jahia.exceptions.JahiaArchiveFileException


                outs.flush();
                outs.close();
            }
        } else {
            logger.error(entryName + " is null or a directory ");
            throw new JahiaArchiveFileException(JahiaException.ENTRY_NOT_FOUND);
        }

        return tmpFile;

    }
View Full Code Here


     */
    public String extractContent(String entryName) throws IOException,
            JahiaArchiveFileException {

        if (!entryExists(entryName))
            throw new JahiaArchiveFileException(JahiaException.ENTRY_NOT_FOUND);

        ZipEntry entry = m_JarFile.getEntry(entryName);

        StringWriter out = new StringWriter();
        IOUtils.copy(m_JarFile.getInputStream(entry), out);
View Full Code Here

TOP

Related Classes of org.jahia.exceptions.JahiaArchiveFileException

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.