Class MetadataStaxWriter

java.lang.Object
org.apache.maven.artifact.repository.metadata.io.MetadataStaxWriter

@Generated public class MetadataStaxWriter extends Object
  • Constructor Details

    • MetadataStaxWriter

      public MetadataStaxWriter()
  • Method Details

    • setNamespace

      public void setNamespace(String namespace)
      Method setNamespace.
      Parameters:
      namespace - the namespace to use.
    • setSchemaLocation

      public void setSchemaLocation(String schemaLocation)
      Method setSchemaLocation.
      Parameters:
      schemaLocation - the schema location to use.
    • setFileComment

      public void setFileComment(String fileComment)
      Method setFileComment.
      Parameters:
      fileComment - a fileComment object.
    • write

      public void write(Writer writer, Metadata metadata) throws IOException, XMLStreamException
      Method write.
      Parameters:
      writer - a writer object
      metadata - a Metadata object
      Throws:
      IOException - IOException if any
      XMLStreamException
    • write

      public void write(OutputStream stream, Metadata metadata) throws IOException, XMLStreamException
      Method write.
      Parameters:
      stream - a stream object
      metadata - a Metadata object
      Throws:
      IOException - IOException if any
      XMLStreamException