Package org.apache.maven.toolchain.v4
Class MavenToolchainsStaxWriter
java.lang.Object
org.apache.maven.toolchain.v4.MavenToolchainsStaxWriter
-
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, PersistedToolchains persistedToolchains) Method write.void
write
(Writer writer, PersistedToolchains persistedToolchains) Method write.
-
Constructor Details
-
MavenToolchainsStaxWriter
public MavenToolchainsStaxWriter()
-
-
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, PersistedToolchains persistedToolchains) throws IOException, XMLStreamException Method write.- Parameters:
writer
- a writer objectpersistedToolchains
- a PersistedToolchains object- Throws:
IOException
- IOException if anyXMLStreamException
-
write
public void write(OutputStream stream, PersistedToolchains persistedToolchains) throws IOException, XMLStreamException Method write.- Parameters:
stream
- a stream objectpersistedToolchains
- a PersistedToolchains object- Throws:
IOException
- IOException if anyXMLStreamException
-