    All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

    java.lang.Object
       |
       +----org.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,

##

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

##

run

     public void run()

createTee

     public static InputStream createTee(TeeMonitor monitor,
                                         InputStream src,
                                         OutputStream dst)

initialize

     public static synchronized void initialize()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index