org.apache.torque.generator.template
Interface TemplateFilter
- All Known Implementing Classes:
- VelocityTemplateFilter
public interface TemplateFilter
An Filter which preprocesses a template.
filter
InputStream filter(InputStream toFilter,
String encoding)
throws IOException
- Filters (i.e modifies) a template.
- Parameters:
toFilter
- the input stream for the template to filter.encoding
- the encoding of the template, or null for the system
encoding.
- Returns:
- A stream containing the filtered template.
- Throws:
IOException
- if an error occurs while reading or filtering
the template.
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.