KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > util > WriterOutputStreamTest


1 package hudson.util;
2
3 import java.io.IOException JavaDoc;
4 import java.io.OutputStream JavaDoc;
5 import java.io.OutputStreamWriter JavaDoc;
6 import java.io.PrintStream JavaDoc;
7
8 /**
9  * TODO: make it a junit test
10  *
11  * @author jglick
12  */

13 public class WriterOutputStreamTest {
14     public static void main(String JavaDoc[] args) throws IOException JavaDoc {
15         OutputStream JavaDoc os = new WriterOutputStream(new OutputStreamWriter JavaDoc(System.out));
16         PrintStream JavaDoc ps = new PrintStream JavaDoc(os);
17         for (int i = 0; i < 200; i++) {
18             ps.println("#" + i + " blah blah blah");
19         }
20         os.close();
21     }
22 }
23
Popular Tags