arlut.csd.Util
Class XMLUtils

java.lang.Object
  |
  +--arlut.csd.Util.XMLUtils

public class XMLUtils
extends java.lang.Object

This class contains various methods that assist the Ganymede server in reading or writing XML files.


Constructor Summary
XMLUtils()
           
 
Method Summary
static void indent(com.jclark.xml.output.XMLWriter xmlOut, int indentLevel)
          This is a helper method emitting a newline and proper indention into an XMLWriter stream.
static java.lang.String XMLDecode(java.lang.String name)
          This is a helper method which undoes the effects of the XMLEncode method, which is used to encode all element names in the Ganymede server.
static java.lang.String XMLEncode(java.lang.String name)
          This is a helper method which converts any spaces in a string to a legal underscore.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

indent

public static void indent(com.jclark.xml.output.XMLWriter xmlOut,
                          int indentLevel)
                   throws java.io.IOException

This is a helper method emitting a newline and proper indention into an XMLWriter stream.


XMLEncode

public static java.lang.String XMLEncode(java.lang.String name)

This is a helper method which converts any spaces in a string to a legal underscore. Any underscores passed in will be converted to a double underscore.


XMLDecode

public static java.lang.String XMLDecode(java.lang.String name)

This is a helper method which undoes the effects of the XMLEncode method, which is used to encode all element names in the Ganymede server. Any pair of subsequent underscores will be replaced in the returned String with a single underscore. Any single underscore will be replaced with a space.