Class Markdown4jHtmlProducer
java.lang.Object
com.reallifedeveloper.common.infrastructure.Markdown4jHtmlProducer
- All Implemented Interfaces:
HtmlProducer
- Author:
- RealLifeDeveloper
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Markdown4jHtmlProducer
public Markdown4jHtmlProducer()
-
-
Method Details
-
produce
Description copied from interface:HtmlProducerProduces HTML from the named resource on classpath.- Specified by:
producein interfaceHtmlProducer- Parameters:
resourceName- the name of the resource to convert to HTML- Returns:
- the HTML produced
- Throws:
IOException- if converting the resource failed
-
canHandle
Description copied from interface:HtmlProducerShows if thisHtmlProducercan handle the given resource or not.- Specified by:
canHandlein interfaceHtmlProducer- Parameters:
resourceName- the name of the resource to check- Returns:
trueif the resource can be handled,falseotherwise
-