|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.io.PrintStream groovy.io.GroovyPrintStream
public class GroovyPrintStream extends PrintStream
A PrintStream that outputs objects in Groovy style. That means print(Object) uses InvokerHelper.toString(Object) to produce the same results as Writer.print(Object).
Constructor Summary | |
GroovyPrintStream(OutputStream out)
Creates a new print stream. |
|
GroovyPrintStream(OutputStream out, boolean autoFlush)
Creates a new print stream. |
|
GroovyPrintStream(OutputStream out, boolean autoFlush, String encoding)
Creates a new print stream. |
|
GroovyPrintStream(String fileName)
Creates a new print stream, without automatic line flushing, with the specified file name. |
|
GroovyPrintStream(String fileName, String csn)
Creates a new print stream, without automatic line flushing, with the specified file name and charset. |
|
GroovyPrintStream(File file)
Creates a new print stream, without automatic line flushing, with the specified file. |
|
GroovyPrintStream(File file, String csn)
Creates a new print stream, without automatic line flushing, with the specified file and charset. |
Method Summary | |
---|---|
void
|
print(Object obj)
Prints an object Groovy style. |
void
|
println(Object obj)
Prints an object Groovy style followed by a newline. |
Methods inherited from class PrintStream | |
---|---|
println, println, println, println, println, println, println, println, println, println, append, append, append, append, append, append, format, format, write, write, print, print, print, print, print, print, print, print, print, close, flush, checkError, printf, printf, write, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class FilterOutputStream | |
---|---|
write, write, write, close, flush, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public GroovyPrintStream(OutputStream out)
public GroovyPrintStream(OutputStream out, boolean autoFlush)
public GroovyPrintStream(OutputStream out, boolean autoFlush, String encoding)
public GroovyPrintStream(String fileName)
public GroovyPrintStream(String fileName, String csn)
public GroovyPrintStream(File file)
public GroovyPrintStream(File file, String csn)
Method Detail |
---|
public void print(Object obj)
obj
- The Object
to be printed
public void println(Object obj)
obj
- The Object
to be printed
Copyright © 2003-2013 The Codehaus. All rights reserved.