net.sundog.hoople
Class URLConfigParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.sundog.hoople.URLConfigParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class URLConfigParser
- extends org.xml.sax.helpers.DefaultHandler
The XML Parser that actually parses all the Hoople config files.
|
Constructor Summary |
URLConfigParser(java.io.File documentRoot,
java.util.Set hoopleParsers)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLConfigParser
public URLConfigParser(java.io.File documentRoot,
java.util.Set hoopleParsers)
getCurrentFile
public java.io.File getCurrentFile()
getDocumentRoot
public java.io.File getDocumentRoot()
getCurrentFileAsURL
public java.lang.String getCurrentFileAsURL()
throws java.io.IOException
- Returns the current file and path as a absolute path relative to the the document root.
- Throws:
java.io.IOException
getCurrentFileAsUrlWithoutExtension
public java.lang.String getCurrentFileAsUrlWithoutExtension()
throws java.io.IOException
- The same as getCurrentFileAsURL, but it removes the extension.
- Throws:
java.io.IOException
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
Copyright © 2005 Sundog. All Rights Reserved.