|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream dk.netarkivet.common.utils.DiscardingOutputStream
class DiscardingOutputStream
An OutputStream implementation that simply discards everything it gets. It overrides all the write methods so that they all execute in constant time.
Constructor Summary | |
---|---|
DiscardingOutputStream()
|
Method Summary | |
---|---|
void |
write(byte[] buffer)
Discard all the data we can, efficiently. |
void |
write(byte[] buffer,
int offset,
int amount)
Discard many bytes of data, efficiently. |
void |
write(int i)
Discard a single byte of data. |
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 |
Constructor Detail |
---|
DiscardingOutputStream()
Method Detail |
---|
public void write(int i)
write
in class java.io.OutputStream
OutputStream.write(int)
public void write(byte[] buffer, int offset, int amount)
write
in class java.io.OutputStream
OutputStream.write(byte[], int, int)
public void write(byte[] buffer)
write
in class java.io.OutputStream
OutputStream.write(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |