|
|||||||||||
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
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(OutputStream out,
TimeScheduler scheduler,
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(OutputStream out, TimeScheduler scheduler, String triggerName, int lengthReset)
Method Detail |
public void write(byte[] b, int off, int len) throws IOException
write
in class 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
IOException
- if an exception is encountered when writingpublic void write(int b) throws IOException
write
in class OutputStream
b
- the byte to write to the stream
IOException
- if an exception is encountered when writingpublic void flush() throws IOException
flush
in class OutputStream
IOException
- if an exception is encountered when flushingpublic void close() throws IOException
close
in class OutputStream
IOException
- if an exception is encountered when closing
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |