KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > connextra > util > RealWriterFactory


1 package com.connextra.util;
2
3 import java.io.*;
4
5
6 public class RealWriterFactory implements WriterFactory {
7     public RealWriterFactory() {
8         super();
9     }
10
11     public Writer create(OutputStream anOutputStream) {
12         return new OutputStreamWriter(anOutputStream);
13     }
14
15     public Writer createFileWriter(String JavaDoc filename) throws java.io.IOException JavaDoc {
16         return new FileWriter(new File(filename));
17     }
18 }
Popular Tags