new feature: FreemarkerReader, FreemarkerInputStream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

new feature: FreemarkerReader, FreemarkerInputStream

badqiu
hi,all


all new feature:
Filter input streams through Freemarker.  example code like this:


Configuration configuration = new Configuration();
Map<String,Object> variables = new HashMap<String,Object>();
variables.put("now", new Date());

FreemarkerInputStream freemarkerInput = new FreemarkerInputStream(inputStream,configuration,"UTF-8",variables);

FreemarkerReader freemarkerReader = new FreemarkerReader(reader,configuration,variables);


Attachement here.



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
FreeMarker-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel

Util.java (2K) Download Attachment
FreemarkerInputStream.java (6K) Download Attachment
FreemarkerInputStreamTest.java (1K) Download Attachment
FreemarkerReader.java (5K) Download Attachment
FreemarkerReaderTest.java (984 bytes) Download Attachment