Interface ResourceConverterPlugin
-
- All Known Implementing Classes:
JsonConverterPlugin,ManifestConverterPlugin,PropertiesConverterPlugin,XmlConverterPlugin
@ProviderType public interface ResourceConverterPluginThis plugin extract data form an InputStream of a specific format into a DTO representation.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getHandledExtensions
java.lang.String[] getHandledExtensions()
Get the set of file extension names corresponding to the format that this plugin can handle.- Returns:
- one or multiple extensions name, never
null
-
extract
java.lang.Object extract(java.io.InputStream input) throws java.lang.ExceptionExtract data from the input stream into a DTO representation.- 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
-
-