public class MultiCharMapper extends Object implements CharMapper
CharMapper that delegates to a number of other mappers in turn.| Constructor and Description |
|---|
MultiCharMapper()
Construct a
MultiCharMapper with an empty list of delegate mappers. |
MultiCharMapper(CharMapper... mappers)
Construct a
MultiCharMapper with the supplied list of delegate mappers. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharMapper(CharMapper mapper)
Add a
CharMapper instance to the list of delegate mappers. |
String |
map(int codePoint)
Map character to it's "escaped" string equivalent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarrayMapping, decimalMapping, hexMapping, hexMapping, lookupMapping, lookupMappingpublic MultiCharMapper()
MultiCharMapper with an empty list of delegate mappers.public MultiCharMapper(CharMapper... mappers)
MultiCharMapper with the supplied list of delegate mappers.mappers - the delegate CharMapper instancespublic void addCharMapper(CharMapper mapper)
CharMapper instance to the list of delegate mappers.mapper - the new CharMapperpublic String map(int codePoint)
CharMapper instances in turn, and if any matches, return that string. Return
null if none match.map in interface CharMappercodePoint - the Unicode code point of the character to be mappednull if no escape neededCopyright © 2020. All rights reserved.