org.apache.commons.io.output
Class NullOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.commons.io.output.NullOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class NullOutputStream
extends OutputStream

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

Version:
$Id: NullOutputStream.java 140517 2004-02-23 04:40:29Z bayard $
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)
Overrides:
write in class OutputStream
See Also:
OutputStream.write(byte[], int, int)

write

public void write(int b)
Specified by:
write in class OutputStream
See Also:
OutputStream.write(int)

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException
See Also:
OutputStream.write(byte[])


Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.