Interface StandardBoilerplateService
- All Known Implementing Classes:
StandardBoilerplateServiceImpl
public interface StandardBoilerplateService
-
Method Summary
Modifier and TypeMethodDescriptionaddStandardBoilerplate(String content, String css) Checks if the content has a<body>tag if no<body>tag is found thecontentand thecssare put into the standard-boilerplate.ftladdStandardBoilerplateToInputStream(InputStream source, String css) Converts the source into aStringand hands it over toaddStandardBoilerplate(String, String)for further processing
-
Method Details
-
addStandardBoilerplateToInputStream
Converts the source into aStringand hands it over toaddStandardBoilerplate(String, String)for further processing- Parameters:
source- is the content of the freemarker fieldcss- used for the report- Returns:
- an
InputStreamof the template - Throws:
IOException
-
addStandardBoilerplate
Checks if the content has a<body>tag if no<body>tag is found thecontentand thecssare put into the standard-boilerplate.ftl- Parameters:
content- of the reportcss- used for the report- Returns:
- the content of the report as String
- Throws:
IOException
-