|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
FlushingStreamWriter.java | - | 0% | 0% | 0% |
|
1 |
package org.codehaus.groovy.runtime;
|
|
2 |
|
|
3 |
import java.io.OutputStreamWriter;
|
|
4 |
import java.io.OutputStream;
|
|
5 |
import java.io.IOException;
|
|
6 |
|
|
7 |
/**
|
|
8 |
*
|
|
9 |
*
|
|
10 |
* <p>CrÈation: 18 avr. 2004</p>
|
|
11 |
*
|
|
12 |
* @author Guillaume Laforge
|
|
13 |
*
|
|
14 |
* @since Release x.x.x
|
|
15 |
* @cvs.revision $Revision: 1.1 $
|
|
16 |
* @cvs.tag $Name: $
|
|
17 |
* @cvs.author $Author: glaforge $
|
|
18 |
* @cvs.date $Date: 2004/04/18 19:35:56 $
|
|
19 |
*/
|
|
20 |
public class FlushingStreamWriter extends OutputStreamWriter { |
|
21 |
|
|
22 | 0 |
public FlushingStreamWriter(OutputStream out) {
|
23 | 0 |
super(out);
|
24 |
} |
|
25 |
|
|
26 | 0 |
public void write(char[] cbuf, int off, int len) throws IOException { |
27 | 0 |
super.write(cbuf, off, len);
|
28 | 0 |
flush(); |
29 |
} |
|
30 |
|
|
31 | 0 |
public void write(int c) throws IOException { |
32 | 0 |
super.write(c);
|
33 | 0 |
flush(); |
34 |
} |
|
35 |
|
|
36 | 0 |
public void write(String str, int off, int len) throws IOException { |
37 | 0 |
super.write(str, off, len);
|
38 | 0 |
flush(); |
39 |
} |
|
40 |
} |
|
41 |
|
|