|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Shared interface for creating DOM nodes.
This interface allows different DOM libraries to be used with the NewsMLExplorer; an application should implement this interface to create a DOM tree from a URL string using the techniques of a specific DOM library.
Method Summary | |
org.w3c.dom.Document |
createDOM(java.io.Reader input)
Construct a DOM package from the URL provided. |
org.w3c.dom.Document |
createDOM(java.lang.String url)
Construct a DOM package from the URL provided. |
boolean |
getValidation()
Get the current validation state. |
void |
setValidation(boolean validation)
Require or forbid DTD validation. |
Method Detail |
public void setValidation(boolean validation) throws java.io.IOException
validation
- true to require DTD validation, false to forbid it.java.io.IOException
- if the implementation does not support
the requested state.NewsMLFactory.setValidation(boolean)
public boolean getValidation()
public org.w3c.dom.Document createDOM(java.lang.String url) throws java.io.IOException
url
- A string containing an absolute URL.java.io.IOException
- If there is an error reading the
document.public org.w3c.dom.Document createDOM(java.io.Reader input) throws java.io.IOException
input
- A character stream containing an XML document.java.io.IOException
- If there is an error reading the
document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |