Closeable, Flushable, Appendable, AutoCloseablepublic class GroovyPrintStream extends PrintStream
out| Constructor | Description |
|---|---|
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.
|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
print(Object obj) |
Prints an object Groovy style.
|
void |
println(Object obj) |
Prints an object Groovy style followed by a newline.
|
writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, writepublic GroovyPrintStream(OutputStream out)
PrintStream(java.io.OutputStream)public GroovyPrintStream(OutputStream out, boolean autoFlush)
public GroovyPrintStream(OutputStream out, boolean autoFlush, String encoding) throws UnsupportedEncodingException
public GroovyPrintStream(String fileName) throws FileNotFoundException
FileNotFoundExceptionPrintStream(String)public GroovyPrintStream(String fileName, String csn) throws FileNotFoundException, UnsupportedEncodingException
FileNotFoundExceptionUnsupportedEncodingExceptionPrintStream(String, String)public GroovyPrintStream(File file) throws FileNotFoundException
FileNotFoundExceptionPrintStream(File)public GroovyPrintStream(File file, String csn) throws FileNotFoundException, UnsupportedEncodingException
FileNotFoundExceptionUnsupportedEncodingExceptionPrintStream(File, String)public void print(Object obj)
print in class PrintStreamobj - The Object to be printedpublic void println(Object obj)
println in class PrintStreamobj - The Object to be printed