fc.util
Class TestCustomCode

java.lang.Object
  extended by fc.util.TestCustomCode
All Implemented Interfaces:
CustomCode

public class TestCustomCode
extends Object
implements CustomCode

A test implementation


Constructor Summary
TestCustomCode()
           
 
Method Summary
 void code(Writer writer, Template env)
          Called back from the template engine while substiting data inside a template.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCustomCode

public TestCustomCode()
Method Detail

code

public void code(Writer writer,
                 Template env)
          throws IOException
Description copied from interface: CustomCode
Called back from the template engine while substiting data inside a template.

Specified by:
code in interface CustomCode
Parameters:
writer - can be used to write data at the point in the merged file where the custom code was called. This writer should not be closed, otherwise the template engine will not be able to proceed after this method is invoked (since the template engine also uses the same writer.
env - a reference to the template engine, can be used to invoke methods in the engine.
Throws:
IOException