oracle.cle.util.xml
Class XMLUtil

java.lang.Object
  |
  +--oracle.cle.util.xml.XMLUtil

public class XMLUtil
extends java.lang.Object

Contains a number of frequently used, utility methods for developers using the MVC Framework.


Constructor Summary
XMLUtil()
           
 
Method Summary
static org.xml.sax.InputSource getInputSource(java.lang.String fileOrUrlString, java.lang.Class aRelativeClass)
          Returns the InputSource for the specified file.
static void saxParse(java.lang.String fileOrUrlString, org.xml.sax.helpers.DefaultHandler handler, boolean validate, java.lang.Class relativeClass)
          Loads the XML document specified by fileName or URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

getInputSource

public static org.xml.sax.InputSource getInputSource(java.lang.String fileOrUrlString,
                                                     java.lang.Class aRelativeClass)
                                              throws java.lang.Exception

Returns the InputSource for the specified file. The file can be looked up as a resource with file name specified at aRelativeClass or root of classpath (no protocol) or via a URL if a protocol is given.

Returns:
org.xml.sax.InputSource
See Also:
getInputStream

saxParse

public static void saxParse(java.lang.String fileOrUrlString,
                            org.xml.sax.helpers.DefaultHandler handler,
                            boolean validate,
                            java.lang.Class relativeClass)
                     throws CLEException
Loads the XML document specified by fileName or URL. This method assumes that the specified DefaultHandler will serve as the ContentHandler,EntityResolver, DTDHandler and ErrorHandler for the XML document being parsed.

This method, like most of the framework, relies on JAXP1.1 compliance. If a JAXP1.1 parser is not found then the oracle.xml.parser.v2.SAXParser will be instantiated directly.

See Also:
CLEUtil


Copyright © 2003 ORACLE Corp. All Rights Reserved.