net.sundog.hoople
Class Hoople

java.lang.Object
  extended bynet.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.


Constructor Summary
Hoople()
           
 
Method Summary
 java.io.File getDocumentRoot()
           
 java.util.Set getHoopleParsers()
           
 void run(java.lang.String[] fileNames)
          Runs the passed UrlParsers on all the fileNames.
 void setDocumentRoot(java.io.File documentRoot)
           
 void setXMLReader(org.xml.sax.XMLReader xmlReader)
          Set the XMLReader to user for parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hoople

public Hoople()
Method Detail

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.