wt.util.xml
Class XMLParser

java.lang.Object
  extended bywt.util.xml.XMLParser
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NonValidatingXML4jAdapter

public abstract class XMLParser
extends Object
implements Serializable

Abstract class for wrappers or adapters which hide the implementation details of various XML parsers.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
XMLParser()
           
 
Method Summary
abstract  Document createDOMDocument(File file)
          Deprecated. Replaced by: createDOMDocument(InputStream).
 Document createDOMDocument(File file, boolean ignoreWhitespace)
          Deprecated. Replaced by: createDOMDocument(InputStream, boolean).
abstract  Document createDOMDocument(InputStream is)
          Parses the XML from the given InputStream.
 Document createDOMDocument(InputStream is, boolean ignoreWhitespace)
          Parses the XML from the given InputStream.
abstract  Document createDOMDocument(URL url)
          Deprecated. Replaced by: createDOMDocument(InputStream).
 Document createDOMDocument(URL url, boolean ignoreWhitespace)
          Deprecated. Replaced by: createDOMDocument(InputStream, boolean).
static XMLParser newXMLParser(String fullyQualifiedClassName)
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

XMLParser

public XMLParser()
Method Detail

newXMLParser

public static XMLParser newXMLParser(String fullyQualifiedClassName)
                              throws XMLMechanismException


Supported API: false

Parameters:
fullyQualifiedClassName -
Returns:
XMLParser
Throws:
XMLMechanismException

createDOMDocument

public abstract Document createDOMDocument(File file)
                                    throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream).



Supported API: false

Parameters:
file -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public abstract Document createDOMDocument(URL url)
                                    throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream).



Supported API: false

Parameters:
url -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public final Document createDOMDocument(File file,
                                        boolean ignoreWhitespace)
                                 throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream, boolean).



Supported API: false

Parameters:
file -
ignoreWhitespace -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public final Document createDOMDocument(URL url,
                                        boolean ignoreWhitespace)
                                 throws XMLMechanismException
Deprecated. Replaced by: createDOMDocument(InputStream, boolean).



Supported API: false

Parameters:
url -
ignoreWhitespace -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public abstract Document createDOMDocument(InputStream is)
                                    throws XMLMechanismException
Parses the XML from the given InputStream. The InputStream is aware of the encoding of its source, this allows the parser to get that information from the InputStream. Not all parsers will handle all types of character encoding, as this is not required by the XML 1.0 Specification.

Supported API: false

Parameters:
is -
Returns:
Document
Throws:
XMLMechanismException

createDOMDocument

public final Document createDOMDocument(InputStream is,
                                        boolean ignoreWhitespace)
                                 throws XMLMechanismException
Parses the XML from the given InputStream. The InputStream is aware of the encoding of its source, this allows the parser to get that information from the InputStream. Not all parsers will handle all types of character encoding, as this is not required by the XML 1.0 Specification. If the boolean ignorableWhitespace is true, the parsed DOM Document will be cleaned of whitespace text nodes before being returned.

Supported API: false

Parameters:
is -
ignoreWhitespace -
Returns:
Document
Throws:
XMLMechanismException