W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

Re: Streaming HTML generation

From: Jeff Sickel <Jeff_Sickel@balt.BLaCKSMITH.com>
Date: Tue, 24 Dec 96 13:40:47 -0500
Message-Id: <199612241838.NAA01859@balt.BLaCKSMITH.com>
To: www-jigsaw@www10.w3.org
On Tue, 24 Dec 1996, Mark Friedman wrote:
>Is there a way to use the HTMLGenerator class to stream HTML back to a
>browser. i.e. return the HTML as it's generated instead of waiting until it's
>all generated?
>If not, is there any way to do it?

Actually, you could subclass HtmlGenerator and override the close() and/or  
getInputStream() methods.  Well, maybe not.  Look into what  
w3c.jigsaw.http.Reply and w3c.www.protocol.http.Reply are doing with  
getInputStream() and setStream(w3c.jigsaw.html.HtmlGenerator g).  Might have  
to have a subclass of w3c.jigsaw.http.Reply to really be effective...

There I went typing away when what I was really trying to get at with this  
response was:

As a side note, I was trying to dig through the HTTP 1.0 & 1.1 and HTML specs  
trying to come up with a nice way of dynamically generating images and HTML  
page 'wrappers' that would allow for just streaming the whole document to the  
browser.  I guess I'm just a little off on the use of <IMG SRC="<>"> markup.   
But wouldn't it just be nice to provide some wrapper around an image instead  
of just sending the image back?

Received on Tuesday, 24 December 1996 13:38:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC