Top Description Fields Constructors Methods
org.eclipse.jgit.util.io

public final Class DisabledOutputStream

extends OutputStream
Class Inheritance
Imports
java.io.IOException, .OutputStream, org.eclipse.jgit.internal.JGitText

An OutputStream which always throws IllegalStateExeption during write.

Field Summary

Modifier and TypeField and Description
public static final DisabledOutputStream
INSTANCE

The canonical instance which always throws IllegalStateException.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
write(int
the byte.
b
)

Implements abstract java.io.OutputStream.write.

Writes the specified byte to this output stream.

Inherited from java.io.OutputStream:
closeflushnullOutputStreamwritewrite

Field Detail

INSTANCEback to summary
public static final DisabledOutputStream INSTANCE

The canonical instance which always throws IllegalStateException.

Constructor Detail

DisabledOutputStreamback to summary
private DisabledOutputStream()

Method Detail

writeback to summary
public void write(int b) throws IOException

Implements abstract java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Parameters
b:int

the byte.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.