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.Objectextract(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:ResourceConverterPluginGet the set of file extension names corresponding to the format that this plugin can handle.- Specified by:
getHandledExtensionsin interfaceResourceConverterPlugin- Returns:
- one or multiple extensions name, never
null
-
extract
public java.lang.Object extract(java.io.InputStream input) throws java.lang.ExceptionDescription copied from interface:ResourceConverterPluginExtract data from the input stream into a DTO representation.- Specified by:
extractin interfaceResourceConverterPlugin- Parameters:
input- the stream to extract, must not benull- Returns:
- a DTO representation of the input stream content or
nullif the stream is empty - Throws:
java.lang.Exception- if any errors occur during the extraction process
-
-