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 | append, append, append, append, append, append, checkError, close, equals, flush, format, format, getClass, hashCode, notify, notifyAll, nullOutputStream, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, toString, wait, wait, wait, write, write, write, writeBytes | 
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-2025 The Apache Software Foundation. All rights reserved.