Package org.apache.torque.generator.template

## Interface TemplateFilter

- All Known Implementing Classes:
    `VelocityTemplateFilter`

      public interface TemplateFilter

  An Filter which preprocesses a template.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `InputStream` | `filter​(InputStream toFilter, String encoding)` | Filters (i.e modifies) a template.

- - ### Method Detail

    - #### 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.