|
|||||||||
| 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(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. |
|
| Method Summary | |
|---|---|
void |
print(Object obj)
Prints an object Groovy style. |
void |
println(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(OutputStream out)
PrintStream.PrintStream(java.io.OutputStream)
public GroovyPrintStream(OutputStream out,
boolean autoFlush)
PrintStream.PrintStream(java.io.OutputStream, boolean)
public GroovyPrintStream(OutputStream out,
boolean autoFlush,
String encoding)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionPrintStream.PrintStream(java.io.OutputStream, boolean, String)
public GroovyPrintStream(String fileName)
throws FileNotFoundException
FileNotFoundExceptionPrintStream.PrintStream(String)
public GroovyPrintStream(String fileName,
String csn)
throws FileNotFoundException,
UnsupportedEncodingException
FileNotFoundException
UnsupportedEncodingExceptionPrintStream.PrintStream(String, String)
public GroovyPrintStream(File file)
throws FileNotFoundException
FileNotFoundExceptionPrintStream.PrintStream(File)
public GroovyPrintStream(File file,
String csn)
throws FileNotFoundException,
UnsupportedEncodingException
FileNotFoundException
UnsupportedEncodingExceptionPrintStream.PrintStream(File, String)| Method Detail |
|---|
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
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||