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
,java.lang.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 java.lang.String
decodeNode(java.lang.String name)
Replaces '_-' with '$' and '__' with '_'java.lang.String
encodeNode(java.lang.String name)
Replaces '$' with '_-' and '_' with '__'
-
-
-
Method Detail
-
encodeNode
public java.lang.String encodeNode(java.lang.String name)
Replaces '$' with '_-' and '_' with '__'- Specified by:
encodeNode
in interfacecom.thoughtworks.xstream.io.naming.NameCoder
- Overrides:
encodeNode
in classcom.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
- Parameters:
name
- string where replacements have to be made- Returns:
- escaped name
-
decodeNode
public java.lang.String decodeNode(java.lang.String name)
Replaces '_-' with '$' and '__' with '_'- Specified by:
decodeNode
in interfacecom.thoughtworks.xstream.io.naming.NameCoder
- Overrides:
decodeNode
in classcom.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
- Parameters:
name
- string where replacements have to be made- Returns:
- unescaped name
-
-