Package com.drew.lang
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.drew.lang.NullOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class NullOutputStream extends java.io.OutputStream
An implementation of OutputSteam that ignores write requests by doing nothing. This class may be useful in tests.
-
-
Constructor Summary
Constructors Constructor Description NullOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(int b)
-