Interface ResourceConverterPlugin

    • Method Summary

      All Methods Instance Methods Abstract 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.
    • 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.Exception
        Extract data from the input stream into a DTO representation.
        Parameters:
        input - the stream to extract, must not be null
        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