Class TextScriptExecutor

java.lang.Object
scriptella.driver.text.TextScriptExecutor
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class TextScriptExecutor extends Object implements Closeable, Flushable
Writes a text content to the output and performs properties expansion.

This class is a simplified template engine similar to Velocity, but of course less powerful. Nevertheless this executor is generally faster than external template engines and does not require any additional libraries.

Example:

Script:
 $rownum;$name;$surname;${email.trim().replaceAll('@','_at_')}
 
Parameters:
rownum name surname email
1 John G john@nosuchhost.com
Result:
 1;John;G;john_at_nosuchhost.com
 
Version:
1.0
Author:
Fyodor Kupolov
See Also: