|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.serialize.CharacterMap
public class CharacterMap
This class defines a character map, that is, a mapping from characters to strings used by the serializer when mapping individual characters in the output.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
CharSequence |
map(CharSequence in,
boolean insertNulls)
Expand all the characters in a string using this character mapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
precedenceMethod Detail |
---|
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |