Package jetbrains.buildServer.messages
Class MemoryOptimizedXmlFriendlyReplacer
- java.lang.Object
-
- com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
-
- jetbrains.buildServer.messages.MemoryOptimizedXmlFriendlyReplacer
-
- All Implemented Interfaces:
com.thoughtworks.xstream.io.naming.NameCoder,Cloneable
public class MemoryOptimizedXmlFriendlyReplacer extends com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
-
-
Constructor Summary
Constructors Constructor Description MemoryOptimizedXmlFriendlyReplacer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecodeNode(String name)Replaces '_-' with '$' and '__' with '_'StringencodeNode(String name)Replaces '$' with '_-' and '_' with '__'
-
-
-
Method Detail
-
encodeNode
public String encodeNode(String name)
Replaces '$' with '_-' and '_' with '__'- Specified by:
encodeNodein interfacecom.thoughtworks.xstream.io.naming.NameCoder- Overrides:
encodeNodein classcom.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder- Parameters:
name- string where replacements have to be made- Returns:
- escaped name
-
decodeNode
public String decodeNode(String name)
Replaces '_-' with '$' and '__' with '_'- Specified by:
decodeNodein interfacecom.thoughtworks.xstream.io.naming.NameCoder- Overrides:
decodeNodein classcom.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder- Parameters:
name- string where replacements have to be made- Returns:
- unescaped name
-
-