Package org.apache.maven.metadata.v4
Class MetadataStaxWriter
java.lang.Object
org.apache.maven.metadata.v4.MetadataStaxWriter
-
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, Metadata metadata) Method write.void
Method write.
-
Constructor Details
-
MetadataStaxWriter
public MetadataStaxWriter()
-
-
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
Method write.- Parameters:
writer
- a writer objectmetadata
- a Metadata object- Throws:
IOException
- IOException if anyXMLStreamException
-
write
Method write.- Parameters:
stream
- a stream objectmetadata
- a Metadata object- Throws:
IOException
- IOException if anyXMLStreamException
-