org.nuxeo.ecm.platform.rendering.fm.extensions
Class BlockWriter
java.lang.Object
java.io.Writer
org.nuxeo.ecm.platform.rendering.fm.extensions.BlockWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class BlockWriter
- extends Writer
- Author:
- Bogdan Stefanescu
BlockWriter
public BlockWriter(String page,
String name,
BlockWriterRegistry reg)
getRegistry
public final BlockWriterRegistry getRegistry()
setSuppressOutput
public void setSuppressOutput(boolean suppressOutput)
getSuppressOutput
public boolean getSuppressOutput()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
isEmpty
public boolean isEmpty()
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
writeBlock
public void writeBlock(BlockWriter bw)
writeSuperBlock
public void writeSuperBlock()
copyTo
public void copyTo(Writer writer)
throws freemarker.template.TemplateException,
IOException
- Throws:
freemarker.template.TemplateException
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.