|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.tffenterprises.io.NullOutputStream
public final class NullOutputStream
com.tffenterprises.io.NullOutputStream
is the
moral equivalent of Unix's /dev/null: a data sink, no questions asked.
com.tffenterprises.io.NullOutputStream
throws no exceptions.
Constructor Summary | |
---|---|
NullOutputStream()
Creates a NullOutputStream . |
Method Summary | |
---|---|
void |
close()
Does nothing. |
void |
flush()
Does nothing. |
void |
write(byte[] b)
Does nothing with the data. |
void |
write(byte[] b,
int off,
int len)
Does nothing with the data. |
void |
write(int b)
Does nothing with a byte. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullOutputStream()
NullOutputStream
.
Method Detail |
---|
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
b
- the data to be ignored.public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
b
- the data to be ignored.off
- the offset to be ignored.len
- the length of data to be ignored.public void write(int b)
write
in class java.io.OutputStream
b
- an int representing a byte to be ignored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |