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, flush, format, format, printf, printf, write, write, write, print, print, print, print, print, print, print, print, print, close, writeBytes, checkError, 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-2024 The Apache Software Foundation. All rights reserved.