
pl.wrzasq.commons.text.formatter.FormatterInterface Maven / Gradle / Ivy
/*
* This file is part of the pl.wrzasq.commons.
*
* @license http://mit-license.org/ The MIT license
* @copyright 2016, 2019 © by Rafał Wrzeszcz - Wrzasq.pl.
*/
package pl.wrzasq.commons.text.formatter;
import pl.wrzasq.commons.text.TextProcessingException;
/**
* Source format handler interface.
*/
@FunctionalInterface
public interface FormatterInterface
{
/**
* Transforms source text into (X)HTML.
*
* @param text Source text.
* @return (X)HTML snippet.
* @throws TextProcessingException When text processing fails.
*/
String transform(String text)
throws
TextProcessingException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy