Class XmlConverterPlugin
- java.lang.Object
-
- biz.aQute.bnd.reporter.plugins.resource.converter.XmlConverterPlugin
-
- All Implemented Interfaces:
ResourceConverterPlugin
public class XmlConverterPlugin extends java.lang.Object implements ResourceConverterPlugin
-
-
Constructor Summary
Constructors Constructor Description XmlConverterPlugin()
-
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.private voidinitAndPut(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map, java.lang.String key, java.lang.Object value)private java.lang.ObjecttoDto(org.w3c.dom.Element node)
-
-
-
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
-
toDto
private java.lang.Object toDto(org.w3c.dom.Element node)
-
initAndPut
private void initAndPut(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map, java.lang.String key, java.lang.Object value)
-
-