Interface StandardBoilerplateService

All Known Implementing Classes:
StandardBoilerplateServiceImpl

public interface StandardBoilerplateService
  • Method Details

    • addStandardBoilerplateToInputStream

      InputStream addStandardBoilerplateToInputStream(InputStream source, String css) throws IOException
      Converts the source into a String and hands it over to addStandardBoilerplate(String, String) for further processing
      Parameters:
      source - is the content of the freemarker field
      css - used for the report
      Returns:
      an InputStream of the template
      Throws:
      IOException
    • addStandardBoilerplate

      String addStandardBoilerplate(String content, String css) throws IOException
      Checks if the content has a <body> tag if no <body> tag is found the content and the css are put into the standard-boilerplate.ftl
      Parameters:
      content - of the report
      css - used for the report
      Returns:
      the content of the report as String
      Throws:
      IOException