KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > neu > ccs > jmk > swing > JmkPrintWriter


1 // $Id: JmkPrintWriter.java,v 1.2 2001/12/07 11:41:24 ramsdell Exp $
2

3 /*
4  * Copyright 1997 by Olivier Refalo
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */

20
21 package edu.neu.ccs.jmk.swing;
22
23 import java.io.*;
24
25 public final
26 class JmkPrintWriter
27 extends PrintWriter
28 {
29     JmkWriter jw_;
30
31     public JmkPrintWriter(Writer _w)
32     {
33         super(_w);
34     }
35
36     public JmkPrintWriter(JmkWriter _jw, boolean _b)
37     {
38         super (_jw, _b);
39         jw_=_jw;
40
41     }
42
43     public void jmk_println(String JavaDoc _s)
44     {
45         jw_.jmk_println(_s);
46     }
47
48     public void jmkerr_println(String JavaDoc _s)
49     {
50         jw_.jmkerr_println(_s);
51     }
52 }
53
Popular Tags