org.eclipse.jgit.util.io
Class NullOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.jgit.util.io.NullOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class NullOutputStream
- extends OutputStream
An OutputStream which ignores everything written to it.
Method Summary |
void |
write(byte[] buf)
|
void |
write(byte[] buf,
int pos,
int cnt)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NullOutputStream INSTANCE
- The canonical instance.
write
public void write(int b)
- Specified by:
write
in class OutputStream
write
public void write(byte[] buf)
- Overrides:
write
in class OutputStream
write
public void write(byte[] buf,
int pos,
int cnt)
- Overrides:
write
in class OutputStream
Copyright © 2012. All Rights Reserved.