RE: Question about Memory Cache Handler

> 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 UTC