org.apache.commons.io.output
Class NullOutputStream
java.lang.Object
java.io.OutputStream
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.
This output stream has no destination (file/socket etc.) and all
bytes written to it are ignored and lost.
- Version:
- $Id: NullOutputStream.java 155419 2005-02-26 13:02:41Z dirkv $
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullOutputStream
public NullOutputStream()
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.