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

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

public class WebConfigParserImpl
extends SAXHandlerBase
implements WebConfigParser

Author:
Neil Griffin

Field Summary
 
Fields inherited from class com.liferay.faces.util.xml.internal.SAXHandlerBase
content
 
Constructor Summary
WebConfigParserImpl(SAXParser saxParser, boolean resolveEntities)
           
 
Method Summary
 void endElement(String uri, String localName, String qName)
           
 WebConfig parse(InputStream inputStream, WebConfig webConfig)
          Parses the specified InputStream and returns a new WebConfig that contains parsed data that has been appended to the specified WebConfig.
 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

WebConfigParserImpl

public WebConfigParserImpl(SAXParser saxParser,
                           boolean resolveEntities)
Method Detail

endElement

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

parse

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

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


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