ee.mare.indrek.jtlt
Class TemplateBeautifyReader

Object
  extended byReader
      extended byCharArrayReader
          extended byee.mare.indrek.jtlt.TemplateBeautifyReader

public class TemplateBeautifyReader
extends CharArrayReader

Read in the template and try to beautify the input to to get nicer looking output from templates. That is whenever there is a single line that starts with SUB and ends with tag end or starts with END then from end and start all whitespace is trimmed, including newlines. But if line starts with sub or end, the white space before is removed.


Field Summary
 
Fields inherited from class CharArrayReader
buf, count, markedPos, pos
 
Fields inherited from class Reader
lock
 
Constructor Summary
TemplateBeautifyReader(Reader reader, TemplateContext ctx)
           
 
Methods inherited from class CharArrayReader
close, mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class Reader
read
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateBeautifyReader

public TemplateBeautifyReader(Reader reader,
                              TemplateContext ctx)
                       throws IOException