|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.xml.XMLParser
Abstract class for wrappers or adapters which hide the implementation
details of various XML parsers.
Supported API: false
Extendable: false
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 |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public XMLParser()
Method Detail |
public static XMLParser newXMLParser(String fullyQualifiedClassName) throws XMLMechanismException
fullyQualifiedClassName
-
XMLMechanismException
public abstract Document createDOMDocument(File file) throws XMLMechanismException
file
-
XMLMechanismException
public abstract Document createDOMDocument(URL url) throws XMLMechanismException
url
-
XMLMechanismException
public final Document createDOMDocument(File file, boolean ignoreWhitespace) throws XMLMechanismException
file
- ignoreWhitespace
-
XMLMechanismException
public final Document createDOMDocument(URL url, boolean ignoreWhitespace) throws XMLMechanismException
url
- ignoreWhitespace
-
XMLMechanismException
public abstract Document createDOMDocument(InputStream is) throws XMLMechanismException
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.
is
-
XMLMechanismException
public final Document createDOMDocument(InputStream is, boolean ignoreWhitespace) throws XMLMechanismException
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.
is
- ignoreWhitespace
-
XMLMechanismException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |