|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.apache.james.util.watchdog.BytesWrittenResetOutputStream
public class BytesWrittenResetOutputStream
This will reset the Watchdog each time a certain amount of data has been transferred. This allows us to keep the timeout settings low, while not timing out during large data transfers.
| Constructor Summary | |
|---|---|
BytesWrittenResetOutputStream(java.io.OutputStream out,
Watchdog watchdog,
int lengthReset)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the stream |
void |
flush()
Flush the stream |
void |
write(byte[] b,
int off,
int len)
Write an array of bytes to the stream |
void |
write(int b)
Write a byte to the stream |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BytesWrittenResetOutputStream(java.io.OutputStream out,
Watchdog watchdog,
int lengthReset)
| Method Detail |
|---|
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the array of bytes to write to the streamoff - the index in the array where we start writinglen - the number of bytes of the array to write
java.io.IOException - if an exception is encountered when writing
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte to write to the stream
java.io.IOException - if an exception is encountered when writing
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an exception is encountered when flushing
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - if an exception is encountered when closing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||