public class CharacterMap extends Object implements Serializable
Constructor and Description |
---|
CharacterMap(IntHashMap<String> map)
Create a CharacterMap from a raw map of integers to strings
|
CharacterMap(Iterable<CharacterMap> list)
Create a CharacterMap that combines a set of existing character maps.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
map(CharSequence in,
boolean insertNulls)
Expand all the characters in a string using this character mapping
|
public CharacterMap(IntHashMap<String> map)
map
- the mapping of integer Unicode character codes to stringspublic CharacterMap(Iterable<CharacterMap> list)
list
- the list of existing character maps. If the same character
is mapped by more than one map in the list, the last mapping takes
precedencepublic CharSequence map(CharSequence in, boolean insertNulls)
in
- the input string to be mappedinsertNulls
- true if null (0) characters are to be inserted before
and after replacement characters. This is done to signal
that output escaping of these characters is disabled. The flag is set to true when writing
XML or HTML, but to false when writing TEXT.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.