Class LoopWriter

java.lang.Object
java.io.Writer
org.apache.ofbiz.webapp.ftl.LoopWriter
All Implemented Interfaces:
freemarker.template.TransformControl, Closeable, Flushable, Appendable, AutoCloseable

public class LoopWriter extends Writer implements freemarker.template.TransformControl
  • Constructor Details

    • LoopWriter

      public LoopWriter(Writer out)
  • Method Details

    • onStart

      public int onStart() throws freemarker.template.TemplateModelException, IOException
      Specified by:
      onStart in interface freemarker.template.TransformControl
      Throws:
      freemarker.template.TemplateModelException
      IOException
    • afterBody

      public int afterBody() throws freemarker.template.TemplateModelException, IOException
      Specified by:
      afterBody in interface freemarker.template.TransformControl
      Throws:
      freemarker.template.TemplateModelException
      IOException
    • onError

      public void onError(Throwable t) throws Throwable
      Specified by:
      onError in interface freemarker.template.TransformControl
      Throws:
      Throwable
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Writer
      Throws:
      IOException
    • write

      public void write(char[] cbuf, int off, int len)
      Specified by:
      write in class Writer
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class Writer
      Throws:
      IOException