org.apache.commons.io.output
Class NullOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.commons.io.output.NullOutputStream

public class NullOutputStream
extends java.io.OutputStream

This OutputStream writes all data to the famous /dev/null.

Version:
$Id: NullOutputStream.java,v 1.3 2003/10/13 07:04:31 rdonkin Exp $
Author:
Jeremias Maerki

Constructor Summary
NullOutputStream()
           
 
Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOutputStream

public NullOutputStream()
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
See Also:
OutputStream.write(byte[], int, int)

write

public void write(int b)
See Also:
OutputStream.write(int)

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException
See Also:
OutputStream.write(byte[])