org.eclipse.jgit.util.io
Class DisabledOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.eclipse.jgit.util.io.DisabledOutputStream
All Implemented Interfaces:
Closeable, Flushable

public final class DisabledOutputStream
extends OutputStream

An OutputStream which always throws IllegalStateExeption during write.


Field Summary
static DisabledOutputStream INSTANCE
          The canonical instance which always throws IllegalStateException.
 
Method Summary
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class OutputStream
Throws:
IOException


Copyright © 2012. All Rights Reserved.