public class OutputStreamWriterGroovyPrinter extends groovy.lang.GroovyObjectSupport implements BinaryOutput
| Constructor and Description |
|---|
OutputStreamWriterGroovyPrinter(OutputStreamPrinter out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
Charset |
getCharset() |
Locale |
getLocale() |
protected Writer |
getWriter() |
Object |
invokeMethod(String name,
Object args)
Optimize the call to the various print methods.
|
void |
print(Object o) |
void |
println() |
void |
println(Object o) |
void |
setLocale(Locale locale) |
void |
write(byte b) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
protected void |
write(char c) |
protected void |
write(String s) |
protected void |
write(Text text) |
getMetaClass, getProperty, setMetaClass, setPropertypublic OutputStreamWriterGroovyPrinter(OutputStreamPrinter out)
protected Writer getWriter()
protected void write(char c)
throws IOException
IOExceptionprotected void write(String s) throws IOException
IOExceptionprotected void write(Text text) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic Charset getCharset()
getCharset in interface BinaryOutputpublic void write(byte[] bytes)
throws IOException
write in interface BinaryOutputIOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in interface BinaryOutputIOExceptionpublic void write(byte b)
throws IOException
write in interface BinaryOutputIOExceptionpublic Locale getLocale()
public void setLocale(Locale locale)
public Object invokeMethod(String name, Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class groovy.lang.GroovyObjectSupportname - the method nameargs - the method argumentspublic final void println(Object o)
public final void println()
public final void print(Object o)
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.