public interface CharacterReplacer
getMap()
) character replacer. Use getWriter(java.io.Writer)
to create a filterd
writer or processText(String)
to apply these rules.Modifier and Type | Method and Description |
---|---|
Map<CharContainer,String> |
getMap()
Return an unmodifiable containing all replacement rules of this character replacer.
|
Writer |
getWriter(Writer out)
Short form for
getWriter(out, false) . |
Writer |
getWriter(Writer out,
boolean compressWhiteSpaces)
Create a filtered writer which processes each character according to this replacement rules.
|
StringBuffer |
processText(CharSequence s)
Convinience method to replace all characters for which a replacement rule exist according to the matching
replacement rule.
|
String |
processText(String s)
Convinience method to replace all characters for which a replacement rule exist according to the matching
replacement rule.
|
String processText(String s)
processText(CharSequence)
StringBuffer processText(CharSequence s)
Writer getWriter(Writer out)
getWriter(out, false)
.Writer getWriter(Writer out, boolean compressWhiteSpaces)
out
without conversion. In compressWhiteSpaces
mode consecutive
white spaces are replaced with one space character (for the definition of white space see
Character.isWhitespace(char)
).out
- writer where converted output is directed tocompressWhiteSpaces
- In compressWhiteSpaces
mode consecutive white spaces are replaced with one
space.out
Map<CharContainer,String> getMap()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500