Class FileReportLoader

  • All Implemented Interfaces:
    ReportLoader

    public class FileReportLoader
    extends java.lang.Object
    implements ReportLoader
    Loads reports from file uris.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accepts​(java.net.URI reportURI)
      Returns true if this loader can process the provided URI.
      void loadReport​(java.net.URI reportURI, java.io.OutputStream out)
      Reads a report from the URI and writes it to the output stream.
      • Methods inherited from class java.lang.Object

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

      • FileReportLoader

        public FileReportLoader()
    • Method Detail

      • accepts

        public final boolean accepts​(java.net.URI reportURI)
        Description copied from interface: ReportLoader
        Returns true if this loader can process the provided URI.
        Specified by:
        accepts in interface ReportLoader
        Parameters:
        reportURI - the uri to test.
      • loadReport

        public final void loadReport​(java.net.URI reportURI,
                                     java.io.OutputStream out)
                              throws java.io.IOException
        Description copied from interface: ReportLoader
        Reads a report from the URI and writes it to the output stream.
        Specified by:
        loadReport in interface ReportLoader
        Parameters:
        reportURI - uri of the report.
        out - output stream to write to.
        Throws:
        java.io.IOException