Package freemarker.template.utility

Examples of freemarker.template.utility.NullArgumentException


     * @return the loaded template, or {@code null} if the template was not found.
     */
    public Template getTemplate(String name, Locale locale, String encoding, boolean parseAsFTL)
    throws IOException
    {
        if (name == null) throw new NullArgumentException("name");
        if (locale == null) throw new NullArgumentException("locale");
        if (encoding == null) throw new NullArgumentException("encoding");
        name = normalizeName(name);
        if(name == null) return null;
       
        return templateLoader != null ? getTemplate(templateLoader, name, locale, encoding, parseAsFTL) : null;
    }   
View Full Code Here

TOP

Related Classes of freemarker.template.utility.NullArgumentException

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.