|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.common.XMLUtil
public final class XMLUtil
Utility class containing methods useful in parsing or building XML.
| Field Summary | |
|---|---|
static String |
XMLNS_NAMESPACE_URI
The namespace declaration to be assigned to the namespace definition in XML documents. |
| Method Summary | |
|---|---|
static org.apache.xml.resolver.tools.CatalogResolver |
getEntityResolver(String[] catalogs)
Creates an EntityResolver for one or more XML catalogs. |
static XMLResolver |
getXMLResolver(String[] catalogs)
Creates an XMLResolver for one or more XML catalogs. |
static String |
normalizeWhitespace(String input)
Converts all whitespace characters to spaces, then compresses all sequences of spaces to one space. |
static int |
normalizeWhitespace(StringBuilder buffer)
Converts all whitespace characters to spaces, then compresses all sequences of spaces to one space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XMLNS_NAMESPACE_URI
| Method Detail |
|---|
public static String normalizeWhitespace(String input)
input - The String that should be converted.
normalizeWhitespace(StringBuilder)public static int normalizeWhitespace(StringBuilder buffer)
buffer - The StringBuffer that should be converted.
normalizeWhitespace(String)public static org.apache.xml.resolver.tools.CatalogResolver getEntityResolver(String[] catalogs)
catalogs - The array of URIs indicating where the XML catalogs are located.
public static XMLResolver getXMLResolver(String[] catalogs)
catalogs - The array of URIs indicating where the XML catalogs are located.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||