public class GroovyPrintStream
extends java.io.PrintStream
Constructor and Description |
---|
GroovyPrintStream(java.io.File file)
Creates a new print stream, without automatic line flushing, with the
specified file.
|
GroovyPrintStream(java.io.File file,
java.lang.String csn)
Creates a new print stream, without automatic line flushing, with the
specified file and charset.
|
GroovyPrintStream(java.io.OutputStream out)
Creates a new print stream.
|
GroovyPrintStream(java.io.OutputStream out,
boolean autoFlush)
Creates a new print stream.
|
GroovyPrintStream(java.io.OutputStream out,
boolean autoFlush,
java.lang.String encoding)
Creates a new print stream.
|
GroovyPrintStream(java.lang.String fileName)
Creates a new print stream, without automatic line flushing, with the
specified file name.
|
GroovyPrintStream(java.lang.String fileName,
java.lang.String csn)
Creates a new print stream, without automatic line flushing, with the
specified file name and charset.
|
Modifier and Type | Method and Description |
---|---|
void |
print(java.lang.Object obj)
Prints an object Groovy style.
|
void |
println(java.lang.Object obj)
Prints an object Groovy style followed by a newline.
|
append, 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, write
public GroovyPrintStream(java.io.OutputStream out)
PrintStream.PrintStream(java.io.OutputStream)
public GroovyPrintStream(java.io.OutputStream out, boolean autoFlush)
PrintStream.PrintStream(java.io.OutputStream, boolean)
public GroovyPrintStream(java.io.OutputStream out, boolean autoFlush, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
PrintStream.PrintStream(java.io.OutputStream, boolean, String)
public GroovyPrintStream(java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
PrintStream.PrintStream(String)
public GroovyPrintStream(java.lang.String fileName, java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
PrintStream.PrintStream(String, String)
public GroovyPrintStream(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
PrintStream.PrintStream(File)
public GroovyPrintStream(java.io.File file, java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
PrintStream.PrintStream(File, String)
public void print(java.lang.Object obj)
print
in class java.io.PrintStream
obj
- The Object
to be printedpublic void println(java.lang.Object obj)
println
in class java.io.PrintStream
obj
- The Object
to be printed