W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

RE: Question about Memory Cache Handler

From: Henrik Frystyk Nielsen <frystyk@microsoft.com>
Date: Fri, 22 Sep 2000 08:18:09 -0700
Message-ID: <002201c024a8$5d1cd450$fb4c1fac@redmond.corp.microsoft.com>
To: <ysryu@swc.sec.samsung.co.kr>
Cc: <www-lib@w3.org>
> I have some problem in memory cache handler.  We have a plan
> use memory cache about Graphic image files.
> I hope you can help me.
>
> First of all, You said that void "document" pointer point
> object in memory,
> it means that
> I have to make image object in memory?

Yes, the points of the memory cache handler is that the document is in
memory in a form that is already passed - for example as an HTML tree or
as an image map. The application defines what a document looks like as
libwww doesn't know about documents as such.

> When I use the method HTAnchor_setDocument()?

This method can be used by the application to indicate to the anchor
object that it has the "document" (the parsed representation). The memory
cache will look for this pointer but will of course not understand the
specific document structure. Therefore, all it does it to look at the
anchor, if there is a document associated with the anchor then it says
that the document is already in memory, otherwise it continues to try and
go get it (which could then be from the local file cache etc.)

> I can't understand exact meaning of "document" and What I
> have to do to complete memory cache.
> If possible, please show me some sample codes about it.

Henrik
Received on Friday, 22 September 2000 11:19:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT