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 void
close()
void
copyTo(Writer writer)
void
flush()
BlockWriterRegistry
getRegistry()
boolean
getSuppressOutput()
boolean
isEmpty()
void
setSuppressOutput(boolean suppressOutput)
String
toString()
void
write(char[] cbuf, int off, int len)
void
writeBlock(BlockWriter bw)
void
writeSuperBlock()
-
-
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
isEmpty
public boolean isEmpty()
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in 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.TemplateException
IOException
-
-