Package org.eclipse.jgit.util.io
Class DisabledOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jgit.util.io.DisabledOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public final class DisabledOutputStream extends OutputStream
An OutputStream which always throws IllegalStateExeption during write.
-
-
Field Summary
Fields Modifier and Type Field Description static DisabledOutputStream
INSTANCE
The canonical instance which always throws IllegalStateException.
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final DisabledOutputStream INSTANCE
The canonical instance which always throws IllegalStateException.
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
-