Package org.jboss.security.config.parser
Class StaxBasedConfigParser
- java.lang.Object
-
- org.jboss.security.config.parser.StaxBasedConfigParser
-
- All Implemented Interfaces:
XMLStreamConstants
public class StaxBasedConfigParser extends Object implements XMLStreamConstants
Configuration Parser based on Stax- Since:
- Jan 22, 2010
- Author:
- Anil.Saldhana@redhat.com, Marcus Moyses
-
-
Field Summary
-
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
-
Constructor Summary
Constructors Constructor Description StaxBasedConfigParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(InputStream configStream)Parse the Input stream of configurationvoidparse2(InputStream configStream)voidschemaValidate(InputStream configStream)Validate the input file against a schema
-
-
-
Method Detail
-
schemaValidate
public void schemaValidate(InputStream configStream) throws SAXException, IOException
Validate the input file against a schema- Parameters:
configStream-- Throws:
SAXExceptionIOException
-
parse
public void parse(InputStream configStream) throws XMLStreamException, SAXException, IOException
Parse the Input stream of configuration- Parameters:
configStream-- Throws:
XMLStreamExceptionIOExceptionSAXException
-
parse2
public void parse2(InputStream configStream) throws XMLStreamException
- Throws:
XMLStreamException
-
-