OSDN Git Service

* All files: Updated copyright information.
[pf3gnuchains/gcc-fork.git] / libjava / java / io / FilterWriter.java
1 // FilterWriter.java - Filtered character output stream.
2
3 /* Copyright (C) 1998, 1999  Free Software Foundation
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 package java.io;
12
13 /**
14  * @author Tom Tromey <tromey@cygnus.com>
15  * @date September 25, 1998 
16  */
17
18 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
19  * "The Java Language Specification", ISBN 0-201-63451-1
20  * Status:  Complete to version 1.1.
21  */
22
23 public abstract class FilterWriter extends Writer
24 {
25   public void close () throws IOException
26   {
27     out.close();
28   }
29
30   protected FilterWriter (Writer ox)
31   {
32     super (ox);
33     out = ox;
34   }
35
36   public void flush () throws IOException
37   {
38     out.flush();
39   }
40
41   public void write (int oneChar) throws IOException
42   {
43     out.write(oneChar);
44   }
45
46   public void write (char[] buffer, int offset, int count) throws IOException
47   {
48     out.write(buffer, offset, count);
49   }
50
51   public void write (String str, int offset, int count) throws IOException
52   {
53     out.write(str, offset, count);
54   }
55
56   // Where our writes should go.
57   protected Writer out;
58 }