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 and description |
---|
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. |
Methods inherited from class | Name |
---|---|
class PrintStream |
println, println, println, println, println, println, println, println, println, println, append, append, append, append, append, append, format, format, write, write, write, print, print, print, print, print, print, print, print, print, flush, close, writeBytes, checkError, printf, printf, nullOutputStream, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a new print stream. This stream will not flush automatically.
Creates a new print stream.
Creates a new print stream.
Creates a new print stream, without automatic line flushing, with the specified file name.
Creates a new print stream, without automatic line flushing, with the specified file name and charset.
Creates a new print stream, without automatic line flushing, with the specified file.
Creates a new print stream, without automatic line flushing, with the specified file and charset.
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.