Package org.jboss.modules.xml
Class PermissionsXmlParser
- java.lang.Object
-
- org.jboss.modules.xml.PermissionsXmlParser
-
public final class PermissionsXmlParser extends java.lang.ObjectA simple parser for enterprise-stylepermissions.xmlfiles.
-
-
Constructor Summary
Constructors Constructor Description PermissionsXmlParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FactoryPermissionCollectionparsePermissionsXml(java.io.InputStream inputStream, ModuleLoader moduleLoader, java.lang.String moduleName)Parse thepermissions.xmlstream content.static FactoryPermissionCollectionparsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, java.lang.String moduleName)Parse thepermissions.xmlcontent.
-
-
-
Method Detail
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(java.io.InputStream inputStream, ModuleLoader moduleLoader, java.lang.String moduleName) throws XmlPullParserException, java.io.IOException
Parse thepermissions.xmlstream content.- Parameters:
inputStream- the input streammoduleLoader- the module loader to load frommoduleName- the module name to load from- Returns:
- the permission collection (not
null) - Throws:
java.io.IOException- if the input stream throws an exceptionXmlPullParserException- if the XML parser throws an exception
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, java.lang.String moduleName) throws java.io.IOException, XmlPullParserException
Parse thepermissions.xmlcontent.- Parameters:
reader- the parsermoduleLoader- the module loader to load frommoduleName- the module name to load from- Returns:
- the permission collection (not
null) - Throws:
java.io.IOException- if the input stream throws an exceptionXmlPullParserException- if the XML parser throws an exception
-
-