add NullOutputStream
authoradam <adam@megacz.com>
Sun, 8 Jul 2007 22:51:48 +0000 (22:51 +0000)
committeradam <adam@megacz.com>
Sun, 8 Jul 2007 22:51:48 +0000 (22:51 +0000)
darcs-hash:20070708225148-5007d-1565760753904bc420c30fd9f7397523610c972f.gz

src/org/ibex/io/NullOutputStream.java [new file with mode: 0644]

diff --git a/src/org/ibex/io/NullOutputStream.java b/src/org/ibex/io/NullOutputStream.java
new file mode 100644 (file)
index 0000000..fcae4b5
--- /dev/null
@@ -0,0 +1,11 @@
+// Copyright 2007 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
+package org.ibex.io;
+import java.io.*;
+
+public class NullOutputStream extends OutputStream {
+    public void write(int b) { }
+    public void write(byte[] b, int off, int len) { }
+}