Package org.eclipse.jgit.util.io
Class NullOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jgit.util.io.NullOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class NullOutputStream extends java.io.OutputStreamAn OutputStream which ignores everything written to it.
-
-
Field Summary
Fields Modifier and Type Field Description static NullOutputStreamINSTANCEThe canonical instance.
-
Constructor Summary
Constructors Modifier Constructor Description privateNullOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] buf)voidwrite(byte[] buf, int pos, int cnt)voidwrite(int b)
-
-
-
Field Detail
-
INSTANCE
public static final NullOutputStream INSTANCE
The canonical instance.
-
-