org.apache.james.util
Class SchedulerNotifyOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--org.apache.james.util.SchedulerNotifyOutputStream
- public class SchedulerNotifyOutputStream
- extends java.io.OutputStream
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)
|
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 |
SchedulerNotifyOutputStream
public SchedulerNotifyOutputStream(java.io.OutputStream out,
org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler,
java.lang.String triggerName,
int lengthReset)
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class java.io.OutputStream
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.OutputStream
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."