This is in preparation for the Java 8 move, which doesn't support nullOutputStream().master
parent
f0fdb4cfe4
commit
6150e85a5c
@ -0,0 +1,26 @@ |
|||||||
|
package org.apache.harmony.unpack200; |
||||||
|
|
||||||
|
import java.io.OutputStream; |
||||||
|
|
||||||
|
public final class NullOutputStream extends OutputStream { |
||||||
|
public static final OutputStream INSTANCE = new NullOutputStream(); |
||||||
|
|
||||||
|
private NullOutputStream() { |
||||||
|
/* empty */ |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void write(int i) { |
||||||
|
/* empty */ |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void write(byte[] b) { |
||||||
|
/* empty */ |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void write(byte[] b, int off, int len) { |
||||||
|
/* empty */ |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue