wt.htmlutil
Class TemplateOutputStream.KeepAlive

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended bywt.htmlutil.TemplateOutputStream.KeepAlive
All Implemented Interfaces:
Runnable
Enclosing class:
TemplateOutputStream

class TemplateOutputStream.KeepAlive
extends FilterOutputStream
implements Runnable


Field Summary
private  Thread doer
           
private  boolean done
           
private  int interval
           
private  Thread keeper
           
private  String message
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
(package private) TemplateOutputStream.KeepAlive(OutputStream output_stream, String msg, int i)
           
 
Method Summary
(package private)  void cancel()
           
 void close()
           
 void run()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

private String message

interval

private int interval

keeper

private Thread keeper

doer

private Thread doer

done

private boolean done
Constructor Detail

TemplateOutputStream.KeepAlive

TemplateOutputStream.KeepAlive(OutputStream output_stream,
                               String msg,
                               int i)
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

cancel

void cancel()

run

public void run()
Specified by:
run in interface Runnable