public class PrivilegeDefinitionWriter
extends java.lang.Object
Constructor and Description |
---|
PrivilegeDefinitionWriter(java.lang.String contentType)
Creates a new
PrivilegeDefinitionWriter . |
Modifier and Type | Method and Description |
---|---|
void |
writeDefinitions(java.io.OutputStream out,
PrivilegeDefinition[] privilegeDefinitions,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Writes the privilege definitions to the specified output stream.
|
void |
writeDefinitions(java.io.Writer writer,
PrivilegeDefinition[] privilegeDefinitions,
java.util.Map<java.lang.String,java.lang.String> namespaces)
Writes the privilege definitions to the specified output stream.
|
public PrivilegeDefinitionWriter(java.lang.String contentType)
PrivilegeDefinitionWriter
.contentType
- The content type used to determine the type of
serialization.java.lang.IllegalArgumentException
- if the specified content type is not
supported.public void writeDefinitions(java.io.OutputStream out, PrivilegeDefinition[] privilegeDefinitions, java.util.Map<java.lang.String,java.lang.String> namespaces) throws java.io.IOException
out
- The output stream.privilegeDefinitions
- The privilege definitions to write to the
given output stream.namespaces
- The namespace mapping (prefix to uri) used by the
specified definitions.java.io.IOException
- If an error occurs.public void writeDefinitions(java.io.Writer writer, PrivilegeDefinition[] privilegeDefinitions, java.util.Map<java.lang.String,java.lang.String> namespaces) throws java.io.IOException
writer
- The writer.privilegeDefinitions
- The privilege definitions to write to the
given output stream.namespaces
- The namespace mapping (prefix to uri) used by the
specified definitions.java.io.IOException
- If an error occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"