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.7 2003/04/27 09:28:56 rdonkin Exp $
@author Stephan Nagy
@author Jon S. Stevens
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|