org.codehaus.groovy.runtime
Class FlushingStreamWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.OutputStreamWriter
          extended byorg.codehaus.groovy.runtime.FlushingStreamWriter

public class FlushingStreamWriter
extends OutputStreamWriter

Stream writer which flushes after each write operation.

Author:
Guillaume Laforge

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
FlushingStreamWriter(OutputStream out)
           
 
Method Summary
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.OutputStreamWriter
close, flush, getEncoding
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlushingStreamWriter

public FlushingStreamWriter(OutputStream out)
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

write

public void write(int c)
           throws IOException
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Throws:
IOException


Copyright © 2003-2005 The Codehaus. All Rights Reserved.