| 1 |
package org.freehep.util.io; |
| 2 |
|
| 3 |
import java.io.IOException; |
| 4 |
import java.io.OutputStream; |
| 5 |
|
| 6 |
/** |
| 7 |
* Equivalent to writing to /dev/nul |
| 8 |
* |
| 9 |
* @author tonyj |
| 10 |
* @version $Id: DummyOutputStream.java 8584 2006-08-10 23:06:37Z duns $ |
| 11 |
*/ |
| 12 |
public class DummyOutputStream extends OutputStream { |
| 13 |
/** |
| 14 |
* Creates a Dummy output steram. |
| 15 |
*/ |
| 16 |
public DummyOutputStream() { |
| 17 |
} |
| 18 |
|
| 19 |
public void write(int b) throws IOException { |
| 20 |
} |
| 21 |
|
| 22 |
public void write(byte[] b) throws IOException { |
| 23 |
} |
| 24 |
|
| 25 |
public void write(byte[] b, int off, int len) throws IOException { |
| 26 |
} |
| 27 |
} |