Package org.exoplatform.groovyscript
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
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionOutputStreamWriterGroovyPrinter(org.exoplatform.commons.utils.OutputStreamPrinter out) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()protected WriterinvokeMethod(String name, Object args) Optimize the call to the various print methods.final voidfinal voidprintln()final voidvoidvoidwrite(byte b) voidwrite(byte[] bytes) voidwrite(byte[] bytes, int off, int len) protected voidwrite(char c) protected voidprotected voidwrite(org.exoplatform.commons.utils.Text text) Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getMetaClass, getProperty, setMetaClass, setProperty
-
Constructor Details
-
OutputStreamWriterGroovyPrinter
public OutputStreamWriterGroovyPrinter(org.exoplatform.commons.utils.OutputStreamPrinter out)
-
-
Method Details
-
getWriter
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Throws:
IOException
-
getCharset
- Specified by:
getCharsetin interfaceorg.exoplatform.commons.utils.BinaryOutput
-
write
- Specified by:
writein interfaceorg.exoplatform.commons.utils.BinaryOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.exoplatform.commons.utils.BinaryOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.exoplatform.commons.utils.BinaryOutput- Throws:
IOException
-
getLocale
-
setLocale
-
invokeMethod
Optimize the call to the various print methods.- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classgroovy.lang.GroovyObjectSupport- Parameters:
name- the method nameargs- the method arguments- Returns:
- the return value
-
println
-
println
public final void println() -
print
-