|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.util.XMLUtils
public final class XMLUtils
A class with XML related utility methods.
| Method Summary | |
|---|---|
static java.lang.String |
escape(java.lang.String rawText)
Returns the specified arbitrary text reformated in a form suitable for the contents of an XML element. |
static boolean |
isXML(java.io.File file)
Test to see if a file could be an XML file. |
static void |
writeEscaped(java.lang.String rawText,
java.lang.StringBuffer out)
Writes the specified arbitrary text to the specified StringBuffer in a form suitable for the contents of an XML element. |
static void |
writeEscaped(java.lang.String rawText,
java.io.Writer out)
Writes the specified arbitrary text to the specified output in a form suitable for the contents of an XML element. |
static void |
writeEscapedAttributeValue(java.lang.String rawText,
java.io.Writer out)
Properly escape a text string for use as an XML attribute value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeEscaped(java.lang.String rawText,
java.lang.StringBuffer out)
", ',
>, <, &
rawText - the raw text to be encoded for XML outputout - the StringBuffer to which the encoded text will be written
public static void writeEscaped(java.lang.String rawText,
java.io.Writer out)
throws java.io.IOException
", ',
>, <, &
rawText - the raw text to be encoded for XML outputout - the output to which the encoded text will be written
java.io.IOExceptionpublic static java.lang.String escape(java.lang.String rawText)
", ',
>, <, &
rawText - the raw text to be encoded for XML output
public static void writeEscapedAttributeValue(java.lang.String rawText,
java.io.Writer out)
throws java.io.IOException
rawText - the text string to be writtenout - the output destination of the text
java.io.IOExceptionpublic static boolean isXML(java.io.File file)
file - the file to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||