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

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.FacesConfigDescriptorParserImpl
All Implemented Interfaces:
FacesConfigDescriptorParser, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class FacesConfigDescriptorParserImpl
extends SAXHandlerBase
implements FacesConfigDescriptorParser

Author:
Neil Griffin

Field Summary
 
Fields inherited from class com.liferay.faces.util.xml.internal.SAXHandlerBase
content
 
Constructor Summary
FacesConfigDescriptorParserImpl(SAXParser saxParser, boolean resolveEntities)
           
 
Method Summary
 void endElement(String uri, String localName, String elementName)
           
 boolean isWebInfFacesConfig()
           
 FacesConfigDescriptor parse(InputStream inputStream, String path)
           
 FacesConfigDescriptor parse(InputStream inputStream, URL url)
          Parses the specified InputStream and returns a new FacesConfigDescriptor.
 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

FacesConfigDescriptorParserImpl

public FacesConfigDescriptorParserImpl(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 FacesConfigDescriptor parse(InputStream inputStream,
                                   String path)
                            throws IOException
Specified by:
parse in interface FacesConfigDescriptorParser
Throws:
IOException

parse

public FacesConfigDescriptor parse(InputStream inputStream,
                                   URL url)
                            throws IOException
Description copied from interface: FacesConfigDescriptorParser
Parses the specified InputStream and returns a new FacesConfigDescriptor. Closing the specified InputStream is the responsibility of the caller.

Specified by:
parse in interface FacesConfigDescriptorParser
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

isWebInfFacesConfig

public boolean isWebInfFacesConfig()


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