Package org.apache.ofbiz.webapp.ftl
Class LoopWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.ofbiz.webapp.ftl.LoopWriter
-
- All Implemented Interfaces:
freemarker.template.TransformControl
,java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
public class LoopWriter extends java.io.Writer implements freemarker.template.TransformControl
-
-
Constructor Summary
Constructors Constructor Description LoopWriter(java.io.Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
afterBody()
void
close()
void
flush()
void
onError(java.lang.Throwable t)
int
onStart()
void
write(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
onStart
public int onStart() throws freemarker.template.TemplateModelException, java.io.IOException
- Specified by:
onStart
in interfacefreemarker.template.TransformControl
- Throws:
freemarker.template.TemplateModelException
java.io.IOException
-
afterBody
public int afterBody() throws freemarker.template.TemplateModelException, java.io.IOException
- Specified by:
afterBody
in interfacefreemarker.template.TransformControl
- Throws:
freemarker.template.TemplateModelException
java.io.IOException
-
onError
public void onError(java.lang.Throwable t) throws java.lang.Throwable
- Specified by:
onError
in interfacefreemarker.template.TransformControl
- Throws:
java.lang.Throwable
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Writer
- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len)
- Specified by:
write
in classjava.io.Writer
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in classjava.io.Writer
- Throws:
java.io.IOException
-
-