Package org.apache.maven.toolchain.v4
Class MavenToolchainsStaxWriter
java.lang.Object
org.apache.maven.toolchain.v4.MavenToolchainsStaxWriter
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetAddLocationInformation(boolean addLocationInformation) Method setAddLocationInformation.voidsetFileComment(String fileComment) Method setFileComment.voidsetNamespace(String namespace) Method setNamespace.voidsetSchemaLocation(String schemaLocation) Method setSchemaLocation.voidsetStringFormatter(Function<InputLocation, String> stringFormatter) Method setStringFormatter.protected StringtoString(InputLocation location) Method toString.voidwrite(OutputStream stream, PersistedToolchains persistedToolchains) Method write.voidwrite(Writer writer, PersistedToolchains persistedToolchains) Method write.protected voidwriteLocationTracking(InputLocationTracker locationTracker, Object key, XMLStreamWriter serializer) Method writeLocationTracking.
- 
Field Details- 
stringFormatterField stringFormatter.
 
- 
- 
Constructor Details- 
MavenToolchainsStaxWriterpublic MavenToolchainsStaxWriter()
 
- 
- 
Method Details- 
setNamespaceMethod setNamespace.- Parameters:
- namespace- the namespace to use.
 
- 
setSchemaLocationMethod setSchemaLocation.- Parameters:
- schemaLocation- the schema location to use.
 
- 
setFileCommentMethod setFileComment.- Parameters:
- fileComment- a fileComment object.
 
- 
setAddLocationInformationpublic void setAddLocationInformation(boolean addLocationInformation) Method setAddLocationInformation.
- 
setStringFormatterMethod setStringFormatter.- Parameters:
- stringFormatter-
 
- 
writepublic void write(Writer writer, PersistedToolchains persistedToolchains) throws IOException, XMLStreamException Method write.- Parameters:
- writer- a writer object
- persistedToolchains- a PersistedToolchains object
- Throws:
- IOException- IOException if any
- XMLStreamException
 
- 
writepublic void write(OutputStream stream, PersistedToolchains persistedToolchains) throws IOException, XMLStreamException Method write.- Parameters:
- stream- a stream object
- persistedToolchains- a PersistedToolchains object
- Throws:
- IOException- IOException if any
- XMLStreamException
 
- 
writeLocationTrackingprotected void writeLocationTracking(InputLocationTracker locationTracker, Object key, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeLocationTracking.- Parameters:
- locationTracker-
- key-
- serializer-
- Throws:
- IOException
- XMLStreamException
 
- 
toStringMethod toString.- Parameters:
- location-
- Returns:
- String
 
 
-