Framework Professional Edition Package


com.prosyst.util.template
Class TemplateWriter

java.lang.Object
  extended by com.prosyst.util.template.TemplateWriter

public class TemplateWriter
extends java.lang.Object

A light class for writing the HTMLTemplate to a given writer.

Author:
Sofia Doncheva

Constructor Summary
TemplateWriter(HTMLTemplate template, java.io.PrintWriter writer)
          The constructor.
 
Method Summary
 void close()
           
 java.lang.String writeToNextLabel()
          Writes the next piece of constant HTML code to the writer from the current position of the internal pointer up to the next label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateWriter

public TemplateWriter(HTMLTemplate template,
                      java.io.PrintWriter writer)
The constructor. It inits the parsed template, writer and internal pointer.

Parameters:
template - The parsed HTML template.
writer - The writer to write the template to.
Method Detail

writeToNextLabel

public java.lang.String writeToNextLabel()
Writes the next piece of constant HTML code to the writer from the current position of the internal pointer up to the next label.

Returns:
The label that was encountered or null if the end of the template was reached.

close

public void close()

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved