|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.XMLUtils
A class with XML related utility methods.
| Constructor Summary | |
XMLUtils()
Deprecated. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
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. |
int |
hashCode()
returns a unique hash for all instances of this type |
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.io.BufferedWriter out)
Deprecated. |
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 |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLUtils()
| 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.BufferedWriter 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.IOException
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
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||