Class w3c.www.protocol.http.cache.ActiveStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.protocol.http.cache.ActiveStream

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----w3c.www.protocol.http.cache.ActiveStream

public class ActiveStream
extends Thread
ActiveStream is used to tee a stream to the client, while caching it. This class basically mimics the piped streams provided in the java library in a more efficient manner (well, sort of).

If any error occurs while writing data back to the client, then the active thread finishes it works, but only streaming data into the sink,


Method Index

 o createTee(TeeMonitor, InputStream, OutputStream)
 o run()

Methods

 o run
  public void run()
Overrides:
run in class Thread
 o createTee
  public static InputStream createTee(TeeMonitor monitor,
                                      InputStream src,
                                      OutputStream dst) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index