|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.apache.james.util.SchedulerNotifyOutputStream
public class SchedulerNotifyOutputStream
This will reset the scheduler each time a certain amount of data has been transfered. This allows us to keep the timeout settings low, while not timing out during large data transfers.
Constructor Summary | |
---|---|
SchedulerNotifyOutputStream(java.io.OutputStream out,
org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler,
java.lang.String triggerName,
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 SchedulerNotifyOutputStream(java.io.OutputStream out, org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler, java.lang.String triggerName, int lengthReset)
Method Detail |
---|
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
b
- 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 writingpublic void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- the byte to write to the stream
java.io.IOException
- if an exception is encountered when writingpublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- if an exception is encountered when flushingpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.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 |