|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.Util.XMLUtils
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, toString, wait, wait, wait |
| Constructor Detail |
public XMLUtils()
| Method Detail |
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.
java.io.IOExceptionpublic 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.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||