Package org.apache.torque.generator.template.velocity

# Klasse VelocityTemplateFilter

java.lang.Object
org.apache.torque.generator.template.velocity.VelocityTemplateFilter

Alle implementierten Schnittstellen:
  `TemplateFilter`

public class VelocityTemplateFilter extends Object implements TemplateFilter
A Filter for velocity templates. It has the effect of beautifying the output of the velocity outlet.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `VelocityTemplateFilter()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `InputStream`
  `filter(InputStream resource, String encoding)`
  This method filters the template and replaces some unwanted characters.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### VelocityTemplateFilter

    public VelocityTemplateFilter()

- ## Methodendetails

  - ### filter

    public InputStream filter(InputStream resource, String encoding) throws IOException
    This method filters the template and replaces some unwanted characters. For example it removes leading spaces in front of velocity commands and replaces tabs with spaces to prevent bounces in different code editors with different tab-width-setting.
    Angegeben von:
      `filter` in Schnittstelle `TemplateFilter`
    Parameter:
      `resource` - the input stream to filter.
      `encoding` - the encoding to use, or null for the system encoding.
    Gibt zurück:
      the filtered input stream.
    Löst aus:
      `IOException` - if creating, reading or writing to a stream fails.