Class JsonConverterPlugin
- java.lang.Object
-
- biz.aQute.bnd.reporter.plugins.resource.converter.JsonConverterPlugin
-
- All Implemented Interfaces:
ResourceConverterPlugin
public class JsonConverterPlugin extends java.lang.Object implements ResourceConverterPlugin
-
-
Constructor Summary
Constructors Constructor Description JsonConverterPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
extract(java.io.InputStream input)
Extract data from the input stream into a DTO representation.java.lang.String[]
getHandledExtensions()
Get the set of file extension names corresponding to the format that this plugin can handle.
-
-
-
Field Detail
-
_ext
private static final java.lang.String[] _ext
-
dec
private final Decoder dec
-
-
Method Detail
-
getHandledExtensions
public java.lang.String[] getHandledExtensions()
Description copied from interface:ResourceConverterPlugin
Get the set of file extension names corresponding to the format that this plugin can handle.- Specified by:
getHandledExtensions
in interfaceResourceConverterPlugin
- Returns:
- one or multiple extensions name, never
null
-
extract
public java.lang.Object extract(java.io.InputStream input) throws java.lang.Exception
Description copied from interface:ResourceConverterPlugin
Extract data from the input stream into a DTO representation.- Specified by:
extract
in interfaceResourceConverterPlugin
- Parameters:
input
- the stream to extract, must not benull
- Returns:
- a DTO representation of the input stream content or
null
if the stream is empty - Throws:
java.lang.Exception
- if any errors occur during the extraction process
-
-