Class PluginDescriptorStaxWriter
java.lang.Object
org.apache.maven.plugin.descriptor.io.PluginDescriptorStaxWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFileComment
(String fileComment) Method setFileComment.void
setNamespace
(String namespace) Method setNamespace.void
setSchemaLocation
(String schemaLocation) Method setSchemaLocation.void
write
(OutputStream stream, PluginDescriptor pluginDescriptor) Method write.void
write
(Writer writer, PluginDescriptor pluginDescriptor) Method write.
-
Constructor Details
-
PluginDescriptorStaxWriter
public PluginDescriptorStaxWriter()
-
-
Method Details
-
setNamespace
Method setNamespace.- Parameters:
namespace
- the namespace to use.
-
setSchemaLocation
Method setSchemaLocation.- Parameters:
schemaLocation
- the schema location to use.
-
setFileComment
Method setFileComment.- Parameters:
fileComment
- a fileComment object.
-
write
public void write(Writer writer, PluginDescriptor pluginDescriptor) throws IOException, XMLStreamException Method write.- Parameters:
writer
- a writer objectpluginDescriptor
- a PluginDescriptor object- Throws:
IOException
- IOException if anyXMLStreamException
-
write
public void write(OutputStream stream, PluginDescriptor pluginDescriptor) throws IOException, XMLStreamException Method write.- Parameters:
stream
- a stream objectpluginDescriptor
- a PluginDescriptor object- Throws:
IOException
- IOException if anyXMLStreamException
-