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)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
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

SchedulerNotifyOutputStream

public SchedulerNotifyOutputStream(java.io.OutputStream out,
                                   org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler,
                                   java.lang.String triggerName,
                                   int lengthReset)
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream
java.io.IOException


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."