public class MemoryOptimizedXmlFriendlyReplacer
extends com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
Constructor and Description |
---|
MemoryOptimizedXmlFriendlyReplacer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decodeNode(java.lang.String name)
Replaces '_-' with '$' and '__' with '_'
|
java.lang.String |
encodeNode(java.lang.String name)
Replaces '$' with '_-' and '_' with '__'
|
public java.lang.String encodeNode(java.lang.String name)
encodeNode
in interface com.thoughtworks.xstream.io.naming.NameCoder
encodeNode
in class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
name
- string where replacements have to be madepublic java.lang.String decodeNode(java.lang.String name)
decodeNode
in interface com.thoughtworks.xstream.io.naming.NameCoder
decodeNode
in class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
name
- string where replacements have to be made