com.compoze.util
Class  TimedFlushOutputStream
java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--java.io.BufferedOutputStream
                    |
                    +--com.compoze.util.TimedFlushOutputStream
- All Implemented Interfaces: 
 - java.io.Serializable
 
- public class TimedFlushOutputStream
- extends java.io.BufferedOutputStream
- implements java.io.Serializable
   
This class starts a background thread which flushes the underlying
 BufferedOutputStream at a given rate. The permission must be available to
 create a new thread.
- See Also: 
 BufferedOutputStream, Serialized Form
| Fields inherited from class java.io.BufferedOutputStream | 
buf, count | 
 
| Fields inherited from class java.io.FilterOutputStream | 
out | 
 
 
| 
Method Summary | 
 void | 
start()
 
          Create and start a new flush thread. | 
 void | 
stop()
 
          Stop and destroy the flush thread. | 
 
| Methods inherited from class java.io.BufferedOutputStream | 
flush, write, write | 
 
| Methods inherited from class java.io.FilterOutputStream | 
close, write | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TimedFlushOutputStream
public TimedFlushOutputStream(java.io.OutputStream os,
                              long lFlushMillis)
- Constructor.
- Parameters:
 os - underlying output streamlFlushMillis - flush interval (in milliseconds)
 
 
TimedFlushOutputStream
public TimedFlushOutputStream(java.io.OutputStream os,
                              int iSize,
                              long lFlushMillis)
- Constructor.
- Parameters:
 os - underlying output streamiSize - size of output bufferlFlushMillis - flush interval (in milliseconds)
 
 
stop
public void stop()
- Stop and destroy the flush thread.
 
 
start
public void start()
- Create and start a new flush thread.
 
 
 Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.