net.sourceforge.jfacets.impl
Class FacetsSaxParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by 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)

Constructor Summary
FacetsSaxParser(InputStream xml)
          Creates object, parses xml from supplied InputStream and creates descriptors
 
Method Summary
 void characters(char[] text, int start, int length)
           
 void endDocument()
           
 void endElement(String uri, String local, String qName)
           
 FacetDescriptor[] getDescriptors()
          Returns all loaded descriptors
 void startDocument()
           
 void startElement(String uri, String local, String qName, Attributes atts)
           
 
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
 

Constructor Detail

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
Method Detail

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.