Class WriterGroovyPrinter

java.lang.Object
groovy.lang.GroovyObjectSupport
org.exoplatform.groovyscript.WriterGroovyPrinter
All Implemented Interfaces:
groovy.lang.GroovyInterceptable, groovy.lang.GroovyObject

public class WriterGroovyPrinter extends groovy.lang.GroovyObjectSupport
Version:
$Revision$
Author:
Julien Viet
  • Constructor Details

    • WriterGroovyPrinter

      public WriterGroovyPrinter(Writer writer)
  • Method Details

    • getWriter

      protected Writer getWriter()
    • write

      protected void write(char c) throws IOException
      Throws:
      IOException
    • write

      protected void write(String s) throws IOException
      Throws:
      IOException
    • write

      protected void write(org.exoplatform.commons.utils.Text text) throws IOException
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getLocale

      public Locale getLocale()
    • setLocale

      public void setLocale(Locale locale)
    • invokeMethod

      public Object invokeMethod(String name, Object args)
      Optimize the call to the various print methods.
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
      Overrides:
      invokeMethod in class groovy.lang.GroovyObjectSupport
      Parameters:
      name - the method name
      args - the method arguments
      Returns:
      the return value
    • println

      public final void println(Object o)
    • println

      public final void println()
    • print

      public final void print(Object o)