Interface ReportSerializerPlugin


@ProviderType public interface ReportSerializerPlugin
This plugin serialize the extracted DTO report into a specific format.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the set of file extension names corresponding to the format that this plugin can serialize to.
    void
    serialize(Map<String,Object> reportDTO, OutputStream output)
    Serialize the DTO report into the output stream.
  • Method Details

    • getHandledExtensions

      String[] getHandledExtensions()
      Get the set of file extension names corresponding to the format that this plugin can serialize to.
      Returns:
      one or multiple extensions name, never null
    • serialize

      void serialize(Map<String,Object> reportDTO, OutputStream output) throws Exception
      Serialize the DTO report into the output stream.
      Parameters:
      reportDTO - the DTO report to serialize, must not be null
      output - the output stream to write the serialization result, must not be null
      Throws:
      Exception - if any errors occur during the serialization process