Class OutputStreamWriterGroovyPrinter

java.lang.Object
groovy.lang.GroovyObjectSupport
org.exoplatform.groovyscript.OutputStreamWriterGroovyPrinter
All Implemented Interfaces:
groovy.lang.GroovyInterceptable, groovy.lang.GroovyObject, org.exoplatform.commons.utils.BinaryOutput

public class OutputStreamWriterGroovyPrinter extends groovy.lang.GroovyObjectSupport implements org.exoplatform.commons.utils.BinaryOutput
  • Constructor Details

    • OutputStreamWriterGroovyPrinter

      public OutputStreamWriterGroovyPrinter(org.exoplatform.commons.utils.OutputStreamPrinter out)
  • 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
    • getCharset

      public Charset getCharset()
      Specified by:
      getCharset in interface org.exoplatform.commons.utils.BinaryOutput
    • write

      public void write(byte[] bytes) throws IOException
      Specified by:
      write in interface org.exoplatform.commons.utils.BinaryOutput
      Throws:
      IOException
    • write

      public void write(byte[] bytes, int off, int len) throws IOException
      Specified by:
      write in interface org.exoplatform.commons.utils.BinaryOutput
      Throws:
      IOException
    • write

      public void write(byte b) throws IOException
      Specified by:
      write in interface org.exoplatform.commons.utils.BinaryOutput
      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)