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 void
parse(InputStream configStream)
Parse the Input stream of configurationvoid
parse2(InputStream configStream)
void
schemaValidate(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:
SAXException
IOException
-
parse
public void parse(InputStream configStream) throws XMLStreamException, SAXException, IOException
Parse the Input stream of configuration- Parameters:
configStream
-- Throws:
XMLStreamException
IOException
SAXException
-
parse2
public void parse2(InputStream configStream) throws XMLStreamException
- Throws:
XMLStreamException
-
-