org.apache.xalan.xsltc.dom

Class DocumentCache

Implemented Interfaces:
DOMCache

public final class DocumentCache
extends java.lang.Object
implements DOMCache

Author:
Morten Jorgensen

Nested Class Summary

class
DocumentCache.CachedDocument

Constructor Summary

DocumentCache(int size)
DocumentCache constructor
DocumentCache(int size, XSLTCDTMManager dtmManager)
DocumentCache constructor

Method Summary

void
getStatistics(PrintWriter out)
Outputs the cache statistics
DOM
retrieveDocument(String baseURI, String href, Translet trs)
Returns a document either by finding it in the cache or downloading it and putting it in the cache.

Constructor Details

DocumentCache

public DocumentCache(int size)
            throws SAXException
DocumentCache constructor

DocumentCache

public DocumentCache(int size,
                     XSLTCDTMManager dtmManager)
            throws SAXException
DocumentCache constructor

Method Details

getStatistics

public void getStatistics(PrintWriter out)
Outputs the cache statistics

retrieveDocument

public DOM retrieveDocument(String baseURI,
                            String href,
                            Translet trs)
Returns a document either by finding it in the cache or downloading it and putting it in the cache.
Specified by:
retrieveDocument in interface DOMCache

Copyright © 2006 Apache XML Project. All Rights Reserved.