|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.newsml.toolkit.dom.DOMNewsMLFactory
DOM implementation of NewsMLFactory.
This implementation uses yet another factory class, DOMFactory
, to allow the user to plug in different DOM
implementations. A default XercesDOMFactory
is included
with this distribution.
Constructor Summary | |
DOMNewsMLFactory()
Default constructor (uses Xerces). |
|
DOMNewsMLFactory(DOMFactory factory)
Constructor. |
|
DOMNewsMLFactory(DOMFactory factory,
boolean validation)
Constructor. |
Method Summary | |
NewsML |
createNewsML(Reader input,
String baseURL)
Create a top-level NewsML object from a character stream. |
NewsML |
createNewsML(String url)
Create a top-level NewsML object from a URL. |
BaseNode |
createNode(Reader input,
String baseURL)
Create a NewsML node from a URL. |
BaseNode |
createNode(String url)
Create a NewsML node from a URL. |
boolean |
getValidation()
Get the validation flag. |
void |
setValidation(boolean validation)
Set the validation flag. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMNewsMLFactory()
public DOMNewsMLFactory(DOMFactory factory)
factory
- The factory object for creating new DOM documents.public DOMNewsMLFactory(DOMFactory factory, boolean validation) throws IOException
factory
- The factory object for creating new DOM documents.validation
- true if DTD validation is required, false if
it is forbidden.IOException
- if the implementation does not support
the requested validation state.Method Detail |
public void setValidation(boolean validation) throws IOException
NewsMLFactory
setValidation
in interface NewsMLFactory
NewsMLFactory.setValidation(boolean)
public boolean getValidation()
NewsMLFactory
getValidation
in interface NewsMLFactory
NewsMLFactory.getValidation()
public NewsML createNewsML(String url) throws IOException
NewsMLFactory
createNewsML
in interface NewsMLFactory
NewsMLFactory.createNewsML(String)
public NewsML createNewsML(Reader input, String baseURL) throws IOException
NewsMLFactory
createNewsML
in interface NewsMLFactory
NewsMLFactory.createNewsML(Reader,String)
public BaseNode createNode(String url) throws IOException
NewsMLFactory
createNode
in interface NewsMLFactory
NewsMLFactory.createNode(String)
public BaseNode createNode(Reader input, String baseURL) throws IOException
NewsMLFactory
createNode
in interface NewsMLFactory
NewsMLFactory.createNode(Reader,String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |