public class PrivilegeDefinitionReader
extends java.lang.Object
InputStream
. Note,
that this reader will not apply any validation.Constructor and Description |
---|
PrivilegeDefinitionReader(java.io.InputStream in,
java.lang.String contentType)
Creates a new
PrivilegeDefinitionReader for the given
input stream. |
PrivilegeDefinitionReader(java.io.Reader reader,
java.lang.String contentType)
Creates a new
PrivilegeDefinitionReader for the given
input stream. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getNamespaces()
Returns the namespace mappings such as retrieved during parsing.
|
PrivilegeDefinition[] |
getPrivilegeDefinitions()
Returns the privilege definitions retrieved from the input stream.
|
public PrivilegeDefinitionReader(java.io.InputStream in, java.lang.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.java.lang.IllegalArgumentException
- if the specified content type is not supported.public PrivilegeDefinitionReader(java.io.Reader reader, java.lang.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.java.lang.IllegalArgumentException
- if the specified content type is not supported.public PrivilegeDefinition[] getPrivilegeDefinitions()
PrivilegeDefinition
public java.util.Map<java.lang.String,java.lang.String> getNamespaces()
Copyright © 2010 - 2020 Adobe. All Rights Reserved