Package org.apache.tools.ant.util
Class NullOutputStream
java.lang.Object
java.io.OutputStream
org.apache.tools.ant.util.NullOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
OutputStream that completely discards all data written to it.
- Since:
- Ant 1.10.10
-
Field Summary
Modifier and TypeFieldDescriptionstatic NullOutputStream
Shared instance which is safe to use concurrently as the stream doesn't hold any state at all. -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
INSTANCE
Shared instance which is safe to use concurrently as the stream doesn't hold any state at all.
-
-
Method Details
-
write
-
write
public void write(byte[] b, int off, int len) Doesn't do anything.- Overrides:
write
in classOutputStream
-
write
-