|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.foray.font.config.ConfigParser
public class ConfigParser
SAX2 Handler which retrieves the font configuration information and stores it in FontServer. Normally this class doesn't need to be accessed directly.
Constructor Summary | |
---|---|
ConfigParser(FontServer4a server,
InputSource filename)
Constructor. |
Method Summary | |
---|---|
void |
endElement(String uri,
String localName,
String qName)
Wraps up parsing for elements that need to be finalized. |
void |
setDocumentLocator(Locator locator)
Sets the document locator for this parser. |
void |
start()
Parses the configuration file. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Recognizes each valid element and parses its attributes. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigParser(FontServer4a server, InputSource filename)
server
- The parent font server.filename
- The file which contains the configuration information
to be parsed.Method Detail |
---|
public void start() throws org.axsl.font.FontException
org.axsl.font.FontException
- For errors during parsing.public void startElement(String uri, String localName, String qName, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
locator
- The new locator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |