jetbrains.buildServer.messages
Class MemoryOptimizedXmlFriendlyReplacer

java.lang.Object
  extended by com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
      extended by com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
          extended by 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.XmlFriendlyReplacer


Constructor Summary
MemoryOptimizedXmlFriendlyReplacer()
           
 
Method Summary
 java.lang.String escapeName(java.lang.String name)
          Replaces '$' with '_-' and '_' with '__'
 java.lang.String unescapeName(java.lang.String name)
          Replaces '_-' with '$' and '__' with '_'
 
Methods inherited from class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
clone, decodeAttribute, decodeNode, encodeAttribute, encodeNode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryOptimizedXmlFriendlyReplacer

public MemoryOptimizedXmlFriendlyReplacer()
Method Detail

escapeName

public java.lang.String escapeName(java.lang.String name)
Replaces '$' with '_-' and '_' with '__'

Overrides:
escapeName in class com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
Parameters:
name - string where replacements have to be made
Returns:

unescapeName

public java.lang.String unescapeName(java.lang.String name)
Replaces '_-' with '$' and '__' with '_'

Overrides:
unescapeName in class com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
Parameters:
name - string where replacements have to be made
Returns: