Package org.jboss.modules.xml
Class PermissionsXmlParser
- java.lang.Object
-
- org.jboss.modules.xml.PermissionsXmlParser
-
public final class PermissionsXmlParser extends java.lang.Object
A simple parser for enterprise-stylepermissions.xml
files.
-
-
Constructor Summary
Constructors Constructor Description PermissionsXmlParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FactoryPermissionCollection
parsePermissionsXml(java.io.InputStream inputStream, ModuleLoader moduleLoader, java.lang.String moduleName)
Parse thepermissions.xml
stream content.static FactoryPermissionCollection
parsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, java.lang.String moduleName)
Parse thepermissions.xml
content.
-
-
-
Method Detail
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(java.io.InputStream inputStream, ModuleLoader moduleLoader, java.lang.String moduleName) throws XmlPullParserException, java.io.IOException
Parse thepermissions.xml
stream 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.xml
content.- 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
-
-