|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
groovy.io.GroovyPrintStream
public class GroovyPrintStream
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).
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.PrintStream |
|---|
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 |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.UnsupportedEncodingExceptionPrintStream.PrintStream(java.io.OutputStream, boolean, String)
public GroovyPrintStream(java.lang.String fileName)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionPrintStream.PrintStream(String)
public GroovyPrintStream(java.lang.String fileName,
java.lang.String csn)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingExceptionPrintStream.PrintStream(String, String)
public GroovyPrintStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionPrintStream.PrintStream(File)
public GroovyPrintStream(java.io.File file,
java.lang.String csn)
throws java.io.FileNotFoundException,
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingExceptionPrintStream.PrintStream(File, String)| Method Detail |
|---|
public void print(java.lang.Object obj)
print in class java.io.PrintStreamobj - The Object to be printedpublic void println(java.lang.Object obj)
println in class java.io.PrintStreamobj - The Object to be printed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||