org.apache.tapestry.markup
Class AbstractMarkupFilter
java.lang.Object
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
|
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 |
AbstractMarkupFilter
protected AbstractMarkupFilter(ICharacterTranslator translator)
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 outputdata - a character array containing the characters to be outputoffset - the offset within the array to begin outputlength - the number of characters to outputescapeQuotes - 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-2008 Apache Software Foundation. All Rights Reserved.