Class BlockWriter
java.lang.Object
java.io.Writer
org.nuxeo.ecm.platform.rendering.fm.extensions.BlockWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
flush()
final BlockWriterRegistry
boolean
boolean
isEmpty()
void
setSuppressOutput
(boolean suppressOutput) toString()
void
write
(char[] cbuf, int off, int len) void
void
-
Constructor Details
-
BlockWriter
-
-
Method Details
-
getRegistry
-
setSuppressOutput
public void setSuppressOutput(boolean suppressOutput) -
getSuppressOutput
public boolean getSuppressOutput() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
isEmpty
public boolean isEmpty() -
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
writeBlock
-
writeSuperBlock
public void writeSuperBlock() -
copyTo
- Throws:
freemarker.template.TemplateException
IOException
-
toString
-