|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.apache.tika.io.NullOutputStream
public class NullOutputStream
This OutputStream writes all data to the famous /dev/null.
This output stream has no destination (file/socket etc.) and all bytes written to it are ignored and lost.
Field Summary | |
---|---|
static NullOutputStream |
NULL_OUTPUT_STREAM
A singleton. |
Constructor Summary | |
---|---|
NullOutputStream()
|
Method Summary | |
---|---|
void |
write(byte[] b)
Does nothing - output to /dev/null . |
void |
write(byte[] b,
int off,
int len)
Does nothing - output to /dev/null . |
void |
write(int b)
Does nothing - output to /dev/null . |
Methods inherited from class java.io.OutputStream |
---|
close, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NullOutputStream NULL_OUTPUT_STREAM
Constructor Detail |
---|
public NullOutputStream()
Method Detail |
---|
public void write(byte[] b, int off, int len)
/dev/null
.
write
in class java.io.OutputStream
b
- The bytes to writeoff
- The start offsetlen
- The number of bytes to writepublic void write(int b)
/dev/null
.
write
in class java.io.OutputStream
b
- The byte to writepublic void write(byte[] b) throws java.io.IOException
/dev/null
.
write
in class java.io.OutputStream
b
- The bytes to write
java.io.IOException
- never
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |