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
   |
   +----w3c.www.protocol.http.cache.ActiveStream

public class ActiveStream
extends Object
implements Runnable
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 initialize()
 o run()

Methods

 o run
  public void run()
 o createTee
  public static InputStream createTee(TeeMonitor monitor,
                                      InputStream src,
                                      OutputStream dst) throws IOException
 o initialize
  public static synchronized void initialize()

All Packages  Class Hierarchy  This Package  Previous  Next  Index