org.apache.james.util
Class SchedulerNotifyInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.apache.james.util.SchedulerNotifyInputStream
- public class SchedulerNotifyInputStream
- extends java.io.InputStream
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 |
SchedulerNotifyInputStream(java.io.InputStream in,
org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler,
java.lang.String triggerName,
int lengthReset)
|
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchedulerNotifyInputStream
public SchedulerNotifyInputStream(java.io.InputStream in,
org.apache.avalon.cornerstone.services.scheduler.TimeScheduler scheduler,
java.lang.String triggerName,
int lengthReset)
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.InputStream
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."