Hello,

I'm hoping someone can point me in the right direction. Is there any 
sample code on how to use the diskcache? Do I have to start the deamon 
manually? The following code that I am using fails,

            JetspeedDiskCache diskCache=JetspeedDiskCache.getInstance();
            diskCache.add(uriStr);
            if (diskCache.isCached(uriStr)==false){
               diskCache.refresh(uriStr);
            }
           
            // Parse the HTML
            HTMLEditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective",Boolean.TRUE);
            kit.read(diskCache.getEntry(uriStr).getInputStream(),doc,0);



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to