Package com.drew.lang
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.drew.lang.NullOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class NullOutputStream extends 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)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
-
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
-