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
An OutputStream which always throws IllegalStateExeption during write.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DisabledOutputStream
The canonical instance which always throws IllegalStateException. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
Field Details
-
INSTANCE
The canonical instance which always throws IllegalStateException.
-
-
Constructor Details
-
DisabledOutputStream
private DisabledOutputStream()
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-