Package org.codehaus.groovy.runtime
Class FlushingStreamWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.OutputStreamWriter
-
- org.codehaus.groovy.runtime.FlushingStreamWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class FlushingStreamWriter extends OutputStreamWriter
Stream writer which flushes after each write operation.
-
-
Constructor Summary
Constructors Constructor Description FlushingStreamWriter(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str, int off, int len)-
Methods inherited from class java.io.OutputStreamWriter
append, append, close, flush, getEncoding
-
Methods inherited from class java.io.Writer
append, nullWriter, write, write
-
-
-
-
Constructor Detail
-
FlushingStreamWriter
public FlushingStreamWriter(OutputStream out)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
writein classOutputStreamWriter- Throws:
IOException
-
write
public void write(int c) throws IOException- Overrides:
writein classOutputStreamWriter- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
writein classOutputStreamWriter- Throws:
IOException
-
-