Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.fm.extensions
Class BlockWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.nuxeo.ecm.platform.rendering.fm.extensions.BlockWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class BlockWriter
extends Writer

Author:
Bogdan Stefanescu

Constructor Summary
BlockWriter(String page, String name, BlockWriterRegistry reg)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.