Class BlockWriter
- java.lang.Object
 - 
- java.io.Writer
 - 
- org.nuxeo.ecm.platform.rendering.fm.extensions.BlockWriter
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,Appendable,AutoCloseable
public class BlockWriter extends Writer
- Author:
 - Bogdan Stefanescu
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BlockWriter(String page, String name, BlockWriterRegistry reg) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcopyTo(Writer writer)voidflush()BlockWriterRegistrygetRegistry()booleangetSuppressOutput()booleanisEmpty()voidsetSuppressOutput(boolean suppressOutput)StringtoString()voidwrite(char[] cbuf, int off, int len)voidwriteBlock(BlockWriter bw)voidwriteSuperBlock() 
 - 
 
- 
- 
Constructor Detail
- 
BlockWriter
public BlockWriter(String page, String name, BlockWriterRegistry reg)
 
 - 
 
- 
Method Detail
- 
getRegistry
public final BlockWriterRegistry getRegistry()
 
- 
setSuppressOutput
public void setSuppressOutput(boolean suppressOutput)
 
- 
getSuppressOutput
public boolean getSuppressOutput()
 
- 
close
public void close() throws IOException- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Specified by:
 closein classWriter- Throws:
 IOException
 
- 
flush
public void flush() throws IOException- Specified by:
 flushin interfaceFlushable- Specified by:
 flushin classWriter- Throws:
 IOException
 
- 
isEmpty
public boolean isEmpty()
 
- 
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
 writein classWriter- 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.TemplateExceptionIOException
 
 - 
 
 -