~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/java/historic/org/crosswire/io/NullWriter.java

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.crosswire.io;
2
 
 
3
 
import java.io.*;
4
 
 
5
 
/**
6
 
 * NullWriter allows you to write to /dev/null
7
 
 * @author Joe Walker
8
 
 */
9
 
public class NullWriter extends Writer
10
 
{
11
 
    /**
12
 
     * Override write to ask the listed Streams.
13
 
     * @param b The byte to be written, as normal.
14
 
     */
15
 
    public void write(char[] cbuf, int off, int len) throws IOException
16
 
    {
17
 
    }
18
 
 
19
 
    /**
20
 
     * Override write to ask the listed Streams.
21
 
     * @param b The byte to be written, as normal.
22
 
     */
23
 
    public void write(int b) throws IOException
24
 
    {
25
 
    }
26
 
 
27
 
    /**
28
 
     * Override flush to flush the listed Streams.
29
 
     */
30
 
    public void flush() throws IOException
31
 
    {
32
 
    }
33
 
 
34
 
    /**
35
 
     * If someone closes the TeeWriter then we go round
36
 
     * and close all the Streams on the stack.
37
 
     */
38
 
    public void close() throws IOException
39
 
    {
40
 
    }
41
 
}