Class FileReportLoader

java.lang.Object
org.mapfish.print.servlet.job.loader.FileReportLoader
All Implemented Interfaces:
ReportLoader

public class FileReportLoader extends Object implements ReportLoader
Loads reports from file uris.
  • Constructor Details

    • FileReportLoader

      public FileReportLoader()
  • Method Details

    • accepts

      public final boolean accepts(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(URI reportURI, OutputStream out) throws 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:
      IOException