net.sourceforge.jfacets.impl
Class FacetsSaxParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.sourceforge.jfacets.impl.FacetsSaxParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class FacetsSaxParser
- extends DefaultHandler
Parser for facets XML descriptors.
- Author:
- Remi VANKEISBELCK - rvkb.com (remi 'at' rvkb.com)
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacetsSaxParser
public FacetsSaxParser(InputStream xml)
throws IOException,
ParserConfigurationException,
SAXException,
FactoryConfigurationError
- Creates object, parses xml from supplied InputStream and creates descriptors
- Throws:
IOException
ParserConfigurationException
SAXException
FactoryConfigurationError
getDescriptors
public FacetDescriptor[] getDescriptors()
- Returns all loaded descriptors
startDocument
public void startDocument()
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class DefaultHandler
startElement
public void startElement(String uri,
String local,
String qName,
Attributes atts)
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class DefaultHandler
characters
public void characters(char[] text,
int start,
int length)
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class DefaultHandler
endElement
public void endElement(String uri,
String local,
String qName)
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class DefaultHandler
Copyright © 2012. All Rights Reserved.