Class CoreExtensionsStaxWriter
java.lang.Object
org.apache.maven.cli.internal.extension.io.CoreExtensionsStaxWriter
-
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, CoreExtensions coreExtensions) Method write.voidwrite(Writer writer, CoreExtensions coreExtensions) Method write.
-
Constructor Details
-
CoreExtensionsStaxWriter
public CoreExtensionsStaxWriter()
-
-
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, CoreExtensions coreExtensions) throws IOException, XMLStreamException Method write.- Parameters:
writer- a writer objectcoreExtensions- a CoreExtensions object- Throws:
IOException- IOException if anyXMLStreamException
-
write
public void write(OutputStream stream, CoreExtensions coreExtensions) throws IOException, XMLStreamException Method write.- Parameters:
stream- a stream objectcoreExtensions- a CoreExtensions object- Throws:
IOException- IOException if anyXMLStreamException
-