|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
net.jxta.util.DevNullOutputStream
public class DevNullOutputStream
An OutputStream which simply discards all data written to it. Useful when used with CountingOutputStream. This implementation just ignores everything you do it.
| Constructor Summary | |
|---|---|
DevNullOutputStream()
Creates a new instance of DevNullOutputStream |
|
| Method Summary | |
|---|---|
void |
close()
Does nothing.... |
void |
flush()
Does nothing.... |
void |
write(byte[] b)
Does nothing.... |
void |
write(byte[] b,
int offset,
int len)
Does nothing.... |
void |
write(int b)
Does nothing.... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DevNullOutputStream()
| Method Detail |
|---|
public void close()
close in interface Closeableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void write(byte[] b)
write in class OutputStream
public void write(byte[] b,
int offset,
int len)
write in class OutputStreampublic void write(int b)
write in class OutputStream
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||