de.dv.sbu.filehandler.ftl
Interface ISourceParser

All Known Implementing Classes:
DefaultSourceParser

public interface ISourceParser

A simple source parser interface.

Author:
Daniel Vogtland

Method Summary
 java.lang.String parse(java.io.Reader reader, Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> rootMap)
          Reads from a source file.
 

Method Detail

parse

java.lang.String parse(java.io.Reader reader,
                       Configuration configuration,
                       java.util.Map<java.lang.String,java.lang.Object> rootMap)
                       throws java.lang.Exception
Reads from a source file.

Parameters:
reader - The reader consuming the related source file's text content.
configuration - The Freemarker configuration to use.
rootMap - The FTL root map. Might be modified.
Returns:
The resulting content.
Throws:
java.lang.Exception - Any exception.