org.apache.tapestry.markup
Class AbstractMarkupFilter

java.lang.Object
  extended by org.apache.tapestry.markup.AbstractMarkupFilter
All Implemented Interfaces:
MarkupFilter
Direct Known Subclasses:
AsciiMarkupFilter, UTFMarkupFilter, WMLMarkupFilter, XmlMarkupFilter

public class AbstractMarkupFilter
extends Object
implements MarkupFilter

Base class for implementation based on a ICharacterTranslator.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
protected AbstractMarkupFilter(ICharacterTranslator translator)
           
 
Method Summary
 void print(PrintWriter writer, char[] data, int offset, int length, boolean escapeQuotes)
          Print the value to the writer, escaping characters as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMarkupFilter

protected AbstractMarkupFilter(ICharacterTranslator translator)
Method Detail

print

public void print(PrintWriter writer,
                  char[] data,
                  int offset,
                  int length,
                  boolean escapeQuotes)
Description copied from interface: MarkupFilter
Print the value to the writer, escaping characters as necessary.

Specified by:
print in interface MarkupFilter
Parameters:
writer - the write to which converted content should be output
data - a character array containing the characters to be output
offset - the offset within the array to begin output
length - the number of characters to output
escapeQuotes - if true, the value is being rendered as an attribute value and double quotes within the value should be escaped. If false, then then double quotes may pass through unchanged.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.