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:HtmlProducer
Produces HTML from the named resource on classpath.- Specified by:
produce
in 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:HtmlProducer
Shows if thisHtmlProducer
can handle the given resource or not.- Specified by:
canHandle
in interfaceHtmlProducer
- Parameters:
resourceName
- the name of the resource to check- Returns:
true
if the resource can be handled,false
otherwise
-