Interface CharacterReplacer
public interface CharacterReplacer
Rule based (see 
getMap()) character replacer. Use getWriter(java.io.Writer) to create a filterd
 writer or processText(String) to apply these rules.- Since:
 - 2.3
 
- 
Method Summary
Modifier and TypeMethodDescriptiongetMap()Return an unmodifiable containing all replacement rules of this character replacer.Short form forgetWriter(out, false).Create a filtered writer which processes each character according to this replacement rules.Convinience method to replace all characters for which a replacement rule exist according to the matching replacement rule.Convinience method to replace all characters for which a replacement rule exist according to the matching replacement rule. 
- 
Method Details
- 
processText
Convinience method to replace all characters for which a replacement rule exist according to the matching replacement rule.- Since:
 - 2.3
 - See Also:
 
 - 
processText
Convinience method to replace all characters for which a replacement rule exist according to the matching replacement rule.- Since:
 - 4.0.17
 
 - 
getWriter
Short form forgetWriter(out, false).- Since:
 - 4.0.17
 
 - 
getWriter
Create a filtered writer which processes each character according to this replacement rules. Characters without a replacement rule are written tooutwithout conversion. IncompressWhiteSpacesmode consecutive white spaces are replaced with one space character (for the definition of white space seeCharacter.isWhitespace(char)).- Parameters:
 out- writer where converted output is directed tocompressWhiteSpaces- IncompressWhiteSpacesmode consecutive white spaces are replaced with one space.- Returns:
 - a filtered writer which delegates to the provided writer 
out - Since:
 - 4.0.17
 
 - 
getMap
Map<CharContainer,String> getMap()Return an unmodifiable containing all replacement rules of this character replacer.- Since:
 - 2.3
 
 
 -