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.NameCoderencodeNode in class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCodername - string where replacements have to be madepublic java.lang.String decodeNode(java.lang.String name)
decodeNode in interface com.thoughtworks.xstream.io.naming.NameCoderdecodeNode in class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCodername - string where replacements have to be made