net.sundog.hoople
Class Hoople
java.lang.Object
net.sundog.hoople.Hoople
- public class Hoople
- extends java.lang.Object
The main class for running Hoople, either through Ant or any other means.
You pass the location of the document root and the Set of UrlParser objects.
Call run() to do the actual parsing.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hoople
public Hoople()
getDocumentRoot
public java.io.File getDocumentRoot()
setDocumentRoot
public void setDocumentRoot(java.io.File documentRoot)
getHoopleParsers
public java.util.Set getHoopleParsers()
setXMLReader
public void setXMLReader(org.xml.sax.XMLReader xmlReader)
- Set the XMLReader to user for parsing. If not called, defaults to the system XMLReader.
run
public void run(java.lang.String[] fileNames)
throws java.lang.Exception
- Runs the passed UrlParsers on all the fileNames.
If a particular file is not XML and does not contain a reference to the hoople.dtd, that
file is not parsed.
- Throws:
java.lang.Exception
Copyright © 2005 Sundog. All Rights Reserved.