1 15 package org.apache.tapestry.markup; 16 17 import java.io.PrintWriter ; 18 19 import org.apache.hivemind.util.Defense; 20 import org.apache.tapestry.util.text.ICharacterTranslator; 21 22 29 public class AbstractMarkupFilter implements MarkupFilter 30 { 31 private final ICharacterTranslator _translator; 32 33 protected AbstractMarkupFilter(ICharacterTranslator translator) 34 { 35 Defense.notNull(translator, "translator"); 36 37 _translator = translator; 38 } 39 40 public void print(PrintWriter writer, char[] data, int offset, int length, boolean escapeQuotes) 41 { 42 MarkupFilterUtils.print(writer, data, offset, length, escapeQuotes, _translator); 43 } 44 } | Popular Tags |