01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TemplateTransformer.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.template;
09:
10: import com.uwyn.rife.resources.ResourceFinder;
11: import com.uwyn.rife.template.exceptions.TemplateException;
12: import java.io.OutputStream;
13: import java.net.URL;
14: import java.util.Collection;
15:
16: public interface TemplateTransformer {
17: public Collection<URL> transform(String templateName, URL resource,
18: OutputStream result, String encoding)
19: throws TemplateException;
20:
21: public ResourceFinder getResourceFinder();
22:
23: public void setResourceFinder(ResourceFinder resourceFinder);
24:
25: public String getEncoding();
26:
27: public String getState();
28: }
|