Class MetadataStaxWriter
java.lang.Object
org.apache.maven.artifact.repository.metadata.io.MetadataStaxWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFileComment(String fileComment) Method setFileComment.voidsetNamespace(String namespace) Method setNamespace.voidsetSchemaLocation(String schemaLocation) Method setSchemaLocation.voidwrite(OutputStream stream, Metadata metadata) Method write.voidMethod 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
-