wt.htmlutil
Class TemplateOutputStream.KeepAlive
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
wt.htmlutil.TemplateOutputStream.KeepAlive
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- TemplateOutputStream
- class TemplateOutputStream.KeepAlive
- extends FilterOutputStream
- implements Runnable
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
private String message
interval
private int interval
keeper
private Thread keeper
doer
private Thread doer
done
private boolean done
TemplateOutputStream.KeepAlive
TemplateOutputStream.KeepAlive(OutputStream output_stream,
String msg,
int i)
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