001    package com.hammurapi.render;
002    
003    import java.io.File;
004    import java.util.Locale;
005    import java.util.Map;
006    
007    import com.hammurapi.common.Context;
008    
009    /**
010     * Renders to a file.
011     * @author Pavel Vlasov
012     *
013     */
014    public interface FileRenderer {
015            /**
016             * Renders to a file.
017             * @param environment Environment.
018             * @param context Context
019             * @param profile Rendering "profile", e.g. "outline", "embedded". Can be null.
020             * @param locale Locale. If null then the system default locale is used. 
021             * @return True if rendering was successful.
022             * @throws RenderingException
023             */
024            boolean render(File out, Map<String, Object> environment, Context context, String profile, Locale locale) throws RenderingException;
025    
026    }