public class PrivilegeDefinitionWriter extends Object
Constructor and Description |
---|
PrivilegeDefinitionWriter(String contentType)
Creates a new
PrivilegeDefinitionWriter . |
Modifier and Type | Method and Description |
---|---|
void |
writeDefinitions(OutputStream out,
PrivilegeDefinition[] privilegeDefinitions,
Map<String,String> namespaces)
Writes the privilege definitions to the specified output stream.
|
void |
writeDefinitions(Writer writer,
PrivilegeDefinition[] privilegeDefinitions,
Map<String,String> namespaces)
Writes the privilege definitions to the specified output stream.
|
public PrivilegeDefinitionWriter(String contentType)
PrivilegeDefinitionWriter
.contentType
- The content type used to determine the type of
serialization.IllegalArgumentException
- if the specified content type is not
supported.public void writeDefinitions(OutputStream out, PrivilegeDefinition[] privilegeDefinitions, Map<String,String> namespaces) throws 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.IOException
- If an error occurs.public void writeDefinitions(Writer writer, PrivilegeDefinition[] privilegeDefinitions, Map<String,String> namespaces) throws 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.IOException
- If an error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.