com.liferay.faces.util.config.internal
Class FacesConfigParserImpl

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.liferay.faces.util.xml.internal.SAXHandlerBase
          extended by com.liferay.faces.util.config.internal.FacesConfigParserImpl
All Implemented Interfaces:
FacesConfigParser, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class FacesConfigParserImpl
extends SAXHandlerBase
implements FacesConfigParser

Author:
Neil Griffin

Field Summary
 
Fields inherited from class com.liferay.faces.util.xml.internal.SAXHandlerBase
content
 
Constructor Summary
FacesConfigParserImpl(SAXParser saxParser, boolean resolveEntities)
           
 
Method Summary
 void endElement(String uri, String localName, String elementName)
           
protected  SAXParser getSAXParser()
           
 FacesConfig parse(InputStream inputStream, FacesConfig facesConfig)
          Parses the specified InputStream and returns a new FacesConfig that contains parsed data that has been appended to the specified FacesConfig.
 void startElement(String uri, String localName, String elementName, Attributes attributes)
           
 
Methods inherited from class com.liferay.faces.util.xml.internal.SAXHandlerBase
characters, resolveEntity
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, 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

FacesConfigParserImpl

public FacesConfigParserImpl(SAXParser saxParser,
                             boolean resolveEntities)
Method Detail

endElement

public void endElement(String uri,
                       String localName,
                       String elementName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

parse

public FacesConfig parse(InputStream inputStream,
                         FacesConfig facesConfig)
                  throws IOException
Description copied from interface: FacesConfigParser
Parses the specified InputStream and returns a new FacesConfig that contains parsed data that has been appended to the specified FacesConfig. Closing the specified InputStream is the responsibility of the caller.

Specified by:
parse in interface FacesConfigParser
Throws:
IOException

startElement

public void startElement(String uri,
                         String localName,
                         String elementName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

getSAXParser

protected SAXParser getSAXParser()


Copyright © 2015 Liferay, Inc.. All rights reserved.