|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.ant.types.Input
net.sf.fikin.ant.types.XMLInput
public class XMLInput
Support retrieval of an input XML document as DOM tree
Provides with customization of the DOM facotry created on Jan 3, 2007
| Constructor Summary | |
|---|---|
XMLInput()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
getDocument(org.apache.tools.ant.Task task)
get the input as a DOM tree |
protected javax.xml.parsers.DocumentBuilderFactory |
getFactory()
obtain a reference to the DOM factory |
protected void |
setFactorySettings(javax.xml.parsers.DocumentBuilderFactory factory)
set internal properties of the DOM facotry before creating a builder |
void |
setNamespaceAware(boolean flg)
set if DOM factory to be namespace aware |
| Methods inherited from class net.sf.fikin.ant.types.Input |
|---|
addText, check, getInputStream, getReader, setFile, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLInput()
| Method Detail |
|---|
public void setNamespaceAware(boolean flg)
flg - when true DOM facotry will be namespace aware, by default true
public org.w3c.dom.Document getDocument(org.apache.tools.ant.Task task)
throws org.apache.tools.ant.BuildException
task - enclosing task
java.io.FileNotFoundException - is not supposed to happen because file
existence has been tested by Input.check(Task) already
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.apache.tools.ant.BuildExceptionprotected javax.xml.parsers.DocumentBuilderFactory getFactory()
protected void setFactorySettings(javax.xml.parsers.DocumentBuilderFactory factory)
factory -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||