Class XmlReportSerializerPlugin
- java.lang.Object
-
- biz.aQute.bnd.reporter.plugins.serializer.XmlReportSerializerPlugin
-
- All Implemented Interfaces:
ReportSerializerPlugin
public class XmlReportSerializerPlugin extends java.lang.Object implements ReportSerializerPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]_ext
-
Constructor Summary
Constructors Constructor Description XmlReportSerializerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getHandledExtensions()Get the set of file extension names corresponding to the format that this plugin can serialize to.voidserialize(java.util.Map<java.lang.String,java.lang.Object> data, java.io.OutputStream output)Serialize the DTO report into the output stream.
-
-
-
Method Detail
-
getHandledExtensions
public java.lang.String[] getHandledExtensions()
Description copied from interface:ReportSerializerPluginGet the set of file extension names corresponding to the format that this plugin can serialize to.- Specified by:
getHandledExtensionsin interfaceReportSerializerPlugin- Returns:
- one or multiple extensions name, never
null
-
serialize
public void serialize(java.util.Map<java.lang.String,java.lang.Object> data, java.io.OutputStream output) throws java.lang.ExceptionDescription copied from interface:ReportSerializerPluginSerialize the DTO report into the output stream.- Specified by:
serializein interfaceReportSerializerPlugin- Parameters:
data- the DTO report to serialize, must not benulloutput- the output stream to write the serialization result, must not benull- Throws:
java.lang.Exception- if any errors occur during the serialization process
-
-