public class PrivilegeDefinitionReader extends Object
InputStream
. Note,
that this reader will not apply any validation.Constructor and Description |
---|
PrivilegeDefinitionReader(InputStream in,
String contentType)
Creates a new
PrivilegeDefinitionReader for the given
input stream. |
PrivilegeDefinitionReader(Reader reader,
String contentType)
Creates a new
PrivilegeDefinitionReader for the given
input stream. |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getNamespaces()
Returns the namespace mappings such as retrieved during parsing.
|
PrivilegeDefinition[] |
getPrivilegeDefinitions()
Returns the privilege definitions retrieved from the input stream.
|
public PrivilegeDefinitionReader(InputStream in, String contentType) throws ParseException
PrivilegeDefinitionReader
for the given
input stream. The specified content type is used in order to determine
the type of privilege serialization.in
- The input stream to read the privilege definitions from.contentType
- Currently only types supported by
PrivilegeXmlHandler.isSupportedContentType(String)
are allowed.ParseException
- If an error occurs.IllegalArgumentException
- if the specified content type is not supported.public PrivilegeDefinitionReader(Reader reader, String contentType) throws ParseException
PrivilegeDefinitionReader
for the given
input stream. The specified content type is used in order to determine
the type of privilege serialization.reader
- The reader to read the privilege definitions from.contentType
- Currently only types supported by
PrivilegeXmlHandler.isSupportedContentType(String)
are allowed.ParseException
- If an error occurs.IllegalArgumentException
- if the specified content type is not supported.public PrivilegeDefinition[] getPrivilegeDefinitions()
PrivilegeDefinition
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.