Class MetadataXpp3Writer
java.lang.Object
org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Writer
Class MetadataXpp3Writer.
- Version:
- $Revision$ $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFileComment
(String fileComment) Method setFileComment.void
write
(OutputStream stream, Metadata metadata) Method write.void
Method write.private void
writeMetadata
(Metadata metadata, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeMetadata.private void
writePlugin
(Plugin plugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePlugin.private void
writeSnapshot
(Snapshot snapshot, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeSnapshot.private void
writeSnapshotVersion
(SnapshotVersion snapshotVersion, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeSnapshotVersion.private void
writeVersioning
(Versioning versioning, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeVersioning.
-
Field Details
-
NAMESPACE
Field NAMESPACE. -
fileComment
Field fileComment.
-
-
Constructor Details
-
MetadataXpp3Writer
public MetadataXpp3Writer()
-
-
Method Details
-
setFileComment
Method setFileComment.- Parameters:
fileComment
-
-
write
Method write.- Parameters:
writer
-metadata
-- Throws:
IOException
-
write
Method write.- Parameters:
stream
-metadata
-- Throws:
IOException
-
writeMetadata
private void writeMetadata(Metadata metadata, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeMetadata.- Parameters:
metadata
-serializer
-tagName
-- Throws:
IOException
-
writePlugin
private void writePlugin(Plugin plugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePlugin.- Parameters:
plugin
-serializer
-tagName
-- Throws:
IOException
-
writeSnapshot
private void writeSnapshot(Snapshot snapshot, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeSnapshot.- Parameters:
snapshot
-serializer
-tagName
-- Throws:
IOException
-
writeSnapshotVersion
private void writeSnapshotVersion(SnapshotVersion snapshotVersion, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeSnapshotVersion.- Parameters:
snapshotVersion
-serializer
-tagName
-- Throws:
IOException
-
writeVersioning
private void writeVersioning(Versioning versioning, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeVersioning.- Parameters:
versioning
-serializer
-tagName
-- Throws:
IOException
-