|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.xml.parsers.DocumentBuilder
Parser to create a DOM Document from an input source
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();
Document doc = parser.parse(myInputSource);
| Constructor Summary | |
DocumentBuilder()
|
|
| Method Summary | |
abstract boolean |
isNamespaceAware()
Returns true if the parser is namespace-aware |
abstract boolean |
isValidating()
Returns true if the parser is validating |
abstract Document |
newDocument()
Returns a new Document |
Document |
parse(java.io.File file)
Parse given a File |
abstract Document |
parse(InputSource source)
Parse given an input source |
Document |
parse(java.io.InputStream stream)
Parse the given input stream |
Document |
parse(java.lang.String uri)
Parse given a path name |
abstract void |
setEntityResolver(EntityResolver er)
Sets the entity resolver |
abstract void |
setErrorHandler(ErrorHandler eh)
Sets the error handler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentBuilder()
| Method Detail |
public Document parse(java.io.InputStream stream)
throws SAXException,
java.io.IOException
stream - the input stream to be used as a source
public Document parse(java.lang.String uri)
throws SAXException,
java.io.IOException
uri - a path to the file to open
public Document parse(java.io.File file)
throws SAXException,
java.io.IOException
file - a path to the file to open
public abstract Document parse(InputSource source)
throws SAXException,
java.io.IOException
source - a SAX input sourcepublic abstract boolean isNamespaceAware()
public abstract boolean isValidating()
public abstract void setEntityResolver(EntityResolver er)
public abstract void setErrorHandler(ErrorHandler eh)
public abstract Document newDocument()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||