Class XmlReportSerializerPlugin

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String[] _ext  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getHandledExtensions()
      Get the set of file extension names corresponding to the format that this plugin can serialize to.
      void serialize​(java.util.Map<java.lang.String,​java.lang.Object> data, java.io.OutputStream output)
      Serialize the DTO report into the output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _ext

        private static final java.lang.String[] _ext
    • Constructor Detail

      • XmlReportSerializerPlugin

        public XmlReportSerializerPlugin()
    • Method Detail

      • getHandledExtensions

        public java.lang.String[] getHandledExtensions()
        Description copied from interface: ReportSerializerPlugin
        Get the set of file extension names corresponding to the format that this plugin can serialize to.
        Specified by:
        getHandledExtensions in interface ReportSerializerPlugin
        Returns:
        one or multiple extensions name, never null
      • serialize

        public void serialize​(java.util.Map<java.lang.String,​java.lang.Object> data,
                              java.io.OutputStream output)
                       throws java.lang.Exception
        Description copied from interface: ReportSerializerPlugin
        Serialize the DTO report into the output stream.
        Specified by:
        serialize in interface ReportSerializerPlugin
        Parameters:
        data - the DTO report to serialize, must not be null
        output - the output stream to write the serialization result, must not be null
        Throws:
        java.lang.Exception - if any errors occur during the serialization process