org.apache.excalibur.instrument.manager.impl
Class XMLUtil

java.lang.Object
  extended by org.apache.excalibur.instrument.manager.impl.XMLUtil

final class XMLUtil
extends java.lang.Object

Utility classes useful for working with XML.

Since:
4.1
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:25 $
Author:
Avalon Development Team

Constructor Summary
private XMLUtil()
          Not instantiable.
 
Method Summary
(package private) static java.lang.String getXMLSafeString(java.lang.String value)
          Given an arbitrary text String, generate a new String which can be safely included in XML content.
(package private) static java.lang.String replaceToken(java.lang.String str, java.lang.String oldToken, java.lang.String newToken)
          Replaces one token with another in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

private XMLUtil()
Not instantiable.

Method Detail

replaceToken

static java.lang.String replaceToken(java.lang.String str,
                                     java.lang.String oldToken,
                                     java.lang.String newToken)
Replaces one token with another in a string.

Parameters:
str - String with tokens to be replaced.
oldToken - The token to be replaced.
newToken - The new token value.
Returns:
A new String that has had its tokens replaced.

getXMLSafeString

static final java.lang.String getXMLSafeString(java.lang.String value)
Given an arbitrary text String, generate a new String which can be safely included in XML content.

Parameters:
value - The original String.
Returns:
A new XML-safe String.