org.deckfour.spex.util
Class SXmlCharacterMethods

java.lang.Object
  extended by org.deckfour.spex.util.SXmlCharacterMethods

public class SXmlCharacterMethods
extends Object

This class provides a set of convenience methods for handling strings that are to be written to or read from XML documents.

Author:
Christian W. Guenther (christian@deckfour.org)

Constructor Summary
SXmlCharacterMethods()
           
 
Method Summary
static String convertCharsFromXml(String input)
          Convenience method for backward conversion of XML encoded chars.
static String convertCharsToXml(String input)
          Convenience method to convert XML reserved chars.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SXmlCharacterMethods

public SXmlCharacterMethods()
Method Detail

convertCharsToXml

public static String convertCharsToXml(String input)
Convenience method to convert XML reserved chars.

Parameters:
input - String to be converted.
Returns:
Converted string.

convertCharsFromXml

public static String convertCharsFromXml(String input)
Convenience method for backward conversion of XML encoded chars.

Parameters:
input - XML encoded string to be converted.
Returns:
Converted string.