Class JsonReportSerializerPlugin
- java.lang.Object
-
- biz.aQute.bnd.reporter.plugins.serializer.JsonReportSerializerPlugin
-
- All Implemented Interfaces:
ReportSerializerPlugin
public class JsonReportSerializerPlugin extends java.lang.Object implements ReportSerializerPlugin
-
-
Constructor Summary
Constructors Constructor Description JsonReportSerializerPlugin()
-
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.void
serialize(java.util.Map<java.lang.String,java.lang.Object> data, java.io.OutputStream output)
Serialize the DTO report into the output stream.
-
-
-
Field Detail
-
_ext
private static final java.lang.String[] _ext
-
enc
private final Encoder enc
-
-
Method Detail
-
getHandledExtensions
public java.lang.String[] getHandledExtensions()
Description copied from interface:ReportSerializerPlugin
Get the set of file extension names corresponding to the format that this plugin can serialize to.- Specified by:
getHandledExtensions
in 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.Exception
Description copied from interface:ReportSerializerPlugin
Serialize the DTO report into the output stream.- Specified by:
serialize
in interfaceReportSerializerPlugin
- Parameters:
data
- the DTO report to serialize, must not benull
output
- the output stream to write the serialization result, must not benull
- Throws:
java.lang.Exception
- if any errors occur during the serialization process
-
-