Package groovy.io
Class GroovyPrintWriter
- java.lang.Object
- 
- java.io.Writer
- 
- java.io.PrintWriter
- 
- groovy.io.GroovyPrintWriter
 
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.io.Flushable,- java.lang.Appendable,- java.lang.AutoCloseable
 
 public class GroovyPrintWriter extends java.io.PrintWriterA PrintWriter that outputs objects in Groovy style. That means print(Object) uses InvokerHelper.toString(Object) to produce the same results as Writer.print(Object).- Since:
- 1.6
 
- 
- 
Constructor SummaryConstructors Constructor Description GroovyPrintWriter(java.io.File file)GroovyPrintWriter(java.io.File file, java.lang.String csn)GroovyPrintWriter(java.io.OutputStream out)GroovyPrintWriter(java.io.OutputStream out, boolean autoflush)GroovyPrintWriter(java.io.Writer out)GroovyPrintWriter(java.io.Writer out, boolean autoflush)GroovyPrintWriter(java.lang.String filename)GroovyPrintWriter(java.lang.String filename, java.lang.String csn)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(java.lang.Object x)voidprintln(java.lang.Object x)- 
Methods inherited from class java.io.PrintWriterappend, 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, write, write, write
 
- 
 
- 
- 
- 
Constructor Detail- 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.File file) throws java.io.FileNotFoundException- Throws:
- java.io.FileNotFoundException
 
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.File file, java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException- Throws:
- java.io.FileNotFoundException
- java.io.UnsupportedEncodingException
 
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.Writer out) 
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.Writer out, boolean autoflush)
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.OutputStream out) 
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.io.OutputStream out, boolean autoflush)
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.lang.String filename) throws java.io.FileNotFoundException- Throws:
- java.io.FileNotFoundException
 
 - 
GroovyPrintWriterpublic GroovyPrintWriter(java.lang.String filename, java.lang.String csn) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException- Throws:
- java.io.FileNotFoundException
- java.io.UnsupportedEncodingException
 
 
- 
 
-