For example:
Filter filter = new CharacterFilter(); filter.addAttribute("$","dollar"); filter.addAttribute("#",Entities.POUND); P p = new P(); p.setFilter(filter); Document doc = new Document(); doc.getBody().addElement(p);
The filter is applied when the addElement() method is called.
@version $Id: CharacterFilter.java,v 1.2 1999/04/26 17:17:00 stephan Exp $
@author Stephan Nagy
@author Jon S. Stevens
|
|